commit | c5b56b63698a90f657cb348318f00214fad8787b | [log] [tgz] |
---|---|---|
author | Anthony Sottile <asottile@umich.edu> | Sun Jul 30 17:52:31 2017 -0700 |
committer | Anthony Sottile <asottile@umich.edu> | Sun Jul 30 17:52:31 2017 -0700 |
tree | e2403f1d75bd371a8c98b7c63a11a90b02b5915d | |
parent | 0861462aa389021bfaec1eb3031a0f95d4d03141 [diff] [blame] |
Use a better regex for name-tests-test
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4301317..69e316a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml
@@ -196,7 +196,7 @@ description: This verifies that test files are named correctly entry: name-tests-test language: python - files: ^tests/.+\.py$ + files: (^|/)tests/.+\.py$ - id: no-commit-to-branch name: "Don't commit to branch" entry: no-commit-to-branch