Skip to content

Commit 547819d

Browse files
DEV: Add name-tests-test to pre-commit hooks
* Add the 'name-tests-test' pre-commit hook which verifies that test files under lib/matplotlib/tests/ conform to pytest naming conventions. - Use the '--django' option to match the 'test*.py' naming convention.
1 parent 0371cf9 commit 547819d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ repos:
2020
- id: end-of-file-fixer
2121
exclude_types: [svg]
2222
- id: mixed-line-ending
23+
- id: name-tests-test
24+
args: ["--django"]
2325
- id: trailing-whitespace
2426
exclude_types: [svg]
2527
- repo: https://github.com/pycqa/flake8

0 commit comments

Comments
 (0)