8000 DEV: Add name-tests-test to pre-commit hooks · matplotlib/matplotlib@ade569e · GitHub
[go: up one dir, main page]

Skip to content

Commit ade569e

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 89eacf5 commit ade569e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
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)
0