Skip to content

Commit 1239bbd

Browse files
Use anchor to exclude functional tests in pre-commit
1 parent 64279cb commit 1239bbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ repos:
1515
hooks:
1616
- id: ruff-check
1717
args: ["--fix"]
18-
exclude: "tests/input/"
18+
exclude: &functional "tests/input/"
1919
- id: ruff-format
20-
exclude: ^pylint_django/tests/input.*$
20+
exclude: *functional
2121
args: [--line-length=120]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
2323
rev: "v2.11.1"
@@ -40,4 +40,4 @@ repos:
4040
language: system
4141
types: [python]
4242
args: ["-rn", "-sn", "--fail-on=I"]
43-
exclude: "tests/input/"
43+
exclude: *functional

0 commit comments

Comments
 (0)