From 1239bbddb677d0964332559b4c839503fdf647d9 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 9 Nov 2025 09:20:45 +0100 Subject: [PATCH] Use anchor to exclude functional tests in pre-commit --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77a78c2..da4d201 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,9 +15,9 @@ repos: hooks: - id: ruff-check args: ["--fix"] - exclude: "tests/input/" + exclude: &functional "tests/input/" - id: ruff-format - exclude: ^pylint_django/tests/input.*$ + exclude: *functional args: [--line-length=120] - repo: https://github.com/tox-dev/pyproject-fmt rev: "v2.11.1" @@ -40,4 +40,4 @@ repos: language: system types: [python] args: ["-rn", "-sn", "--fail-on=I"] - exclude: "tests/input/" + exclude: *functional