Skip to content

Commit

Permalink
ci: Add 'name-tests-test' to pre-commit hooks (#1877)
Browse files Browse the repository at this point in the history
* Add the 'name-tests-test' pre-commit hooks which verifies that test files
under tests/ conform to pytest naming conventions.
   - Use the '--django' option to match the 'test*.py' naming convention.
  • Loading branch information
matthewfeickert authored Jun 6, 2022
1 parent 9135b41 commit 42426e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ repos:
# exclude generated files
exclude: ^validation/|\.dtd$|\.json$|\.xml$
- id: mixed-line-ending
- id: name-tests-test
args: ["--django"]
- id: requirements-txt-fixer
- id: trailing-whitespace
# exclude generated files
Expand Down

0 comments on commit 42426e0

Please sign in to comment.