From c5b56b63698a90f657cb348318f00214fad8787b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 30 Jul 2017 17:52:31 -0700 Subject: [PATCH] Use a better regex for name-tests-test --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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