Skip to content

Commit

Permalink
Added pre-commit test to make sure unit tests are named correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaCowley committed Aug 9, 2024
1 parent 742ff9f commit 1b147b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ repos:
- id: check-toml
- id: check-yaml
- id: check-xml
- id: check-vcs-permalinks
- id: name-tests-test
args: ["--unittest"]
# Exclude Python files under `tests/` that aren't unittest files.
# This is a Python verbose regular expression.
# See https://docs.python.org/3/library/re.html#re.VERBOSE
exclude: |
(?x)^tests/(
checkPot.py | # Doesn't use unittest
system | # Uses robot
unit/ (
# Test helpers
textProvider.py |
extensionPointTestHelpers.py |
objectProvider.py |
test_speechManager/speechManagerTestHarness.py
)
)
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
Expand Down

0 comments on commit 1b147b7

Please sign in to comment.