From 2e4d0b178cba036046280c8b8b346baeec1a4df6 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Wed, 14 Sep 2022 11:40:21 +0200 Subject: [PATCH] `name-tests-test`: Search tests in both `tests` and `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 1a6056b..88cdd55 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -167,7 +167,7 @@ description: verifies that test files are named correctly. entry: name-tests-test language: python - files: (^|/)tests/.+\.py$ + files: (^|/)test(s)?/.+\.py$ - id: no-commit-to-branch name: "don't commit to branch" entry: no-commit-to-branch