@ -26,8 +26,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 6.0.0
rev: 'v0.0.246'
- id: flake8
- id: ruff
types: [file, python]
@ -66,13 +66,13 @@ write_to = "src/sigal/version.py"
line-length = 88
target-version = ['py38']
[tool.flake8]
[tool.isort]
max-line-length = "88"
ignore = "E203,W503,E731"
[tool.distutils.isort]
profile = "black"
[tool.ruff]
select = ["E", "F"]
ignore = ["E731"]
[tool.coverage.run]
source = ["sigal"]
omit = [
@ -80,7 +80,7 @@ class BaseCompressor:
Otherwise, it returns False.
"""
if not os.path.splitext(filename)[1][1:] in self.suffixes_to_compress:
if os.path.splitext(filename)[1][1:] not in self.suffixes_to_compress:
return False
file_stats = None