From 3effa55911d61225feca8b56f350711d2e6f2f60 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 21 Jul 2017 09:37:41 -0700 Subject: [PATCH] More strict 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 1aba741..4301317 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