1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

fix: Linting Errors & VS Code config

- Add additional settings to VS Code for formatter changes in plugins
- Fix black formatting
- Fix flake8 errors due to long lines
- Fix flake8 errors due to type comparisons
This commit is contained in:
2024-02-19 10:32:13 -08:00
parent 13dd00c798
commit 53d5ac06bf
8 changed files with 73 additions and 31 deletions

View File

@@ -29,7 +29,7 @@ class File(PhotoBase):
def _plat_get_blocks(self, block_count_per_side, orientation):
image = QImage(str(self.path))
image = image.convertToFormat(QImage.Format_RGB888)
if type(orientation) != int:
if not isinstance(orientation, int):
logging.warning(
"Orientation for file '%s' was a %s '%s', not an int.",
str(self.path),