From 954f9a17ca3de41aa1d27e6b2743509c063ed12a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:09:36 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.0 → v0.14.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.0...v0.14.2) - [github.com/tox-dev/pyproject-fmt: v2.6.0 → v2.11.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.6.0...v2.11.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4454a84..a17b0565 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ 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 args: ["--fix"] @@ -20,7 +20,7 @@ repos: 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 From 9fe2f33c71542f874290b943531e1b364c144953 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 24 Oct 2025 08:13:52 +0200 Subject: [PATCH 2/3] [ruff] Upgrade the legacy alias in pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a17b0565..fbc65187 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.14.2" hooks: - - id: ruff + - id: ruff-check args: ["--fix"] exclude: "tests/input/" - id: ruff-format From 9c93eaa68b1b16c38927323e22cce856a410662f Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 24 Oct 2025 08:20:05 +0200 Subject: [PATCH 3/3] [pre-commit] Disable new pre-commit issues --- pylint_django/compat.py | 2 +- pylint_django/tests/input/external_factory_boy_noerror.py | 2 +- pyproject.toml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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