diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4454a84..fbc65187 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,16 +11,16 @@ repos: args: [--fix=lf] - id: debug-statements - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.13.0" + rev: "v0.14.2" hooks: - - id: ruff + - id: ruff-check args: ["--fix"] exclude: "tests/input/" - id: ruff-format exclude: ^pylint_django/tests/input.*$ args: [--line-length=120] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.6.0" + rev: "v2.11.0" hooks: - id: pyproject-fmt # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version diff --git a/pylint_django/compat.py b/pylint_django/compat.py index 9eeb128c..ba77e4f5 100644 --- a/pylint_django/compat.py +++ b/pylint_django/compat.py @@ -1,4 +1,4 @@ -# flake8: noqa +# flake8: noqa: F401 # pylint: skip-file # no sane linter can figure out the hackiness in this compatibility layer... import sys diff --git a/pylint_django/tests/input/external_factory_boy_noerror.py b/pylint_django/tests/input/external_factory_boy_noerror.py index 9f6152d3..8118055b 100644 --- a/pylint_django/tests/input/external_factory_boy_noerror.py +++ b/pylint_django/tests/input/external_factory_boy_noerror.py @@ -36,7 +36,7 @@ class Meta: class BookTestCase(test.LiveServerTestCase): serialized_rollback = True - def _fixture_setup(self): + def _fixture_setup(self): # pylint: disable=arguments-differ super()._fixture_setup() self.book = BookFactory() _author = AuthorFactory() diff --git a/pyproject.toml b/pyproject.toml index a98e8029..39a7de67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,7 @@ lint.select = [ "W", # pycodestyle ] lint.ignore = [ + "PLC0415", # `import` should be at the top-level of a file "PLR0912", # Too many branches, worse than C901 "PLR0915", # Too many statements, worse than C901 "PLR2004", # Magic value used in comparison, opinionated