From f57b0de8ca053dc34f6cf996ad5d066bc237f06c Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 6 Dec 2021 02:01:09 +0200 Subject: [PATCH] Exclude the test files from pre-commit. They're not meant to be checked by the hooks in .pre-commit-config.yaml (that test the code in the repo) but by the ones in .pre-commit-hooks.yaml (test cases for the hooks in the repo). --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b4efd6..3fa3ab9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ --- +exclude: test_files repos: - repo: https://github.com/pre-commit/pre-commit-hooks.git rev: v4.0.1 @@ -10,7 +11,7 @@ repos: - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - exclude: VERSION|test_files + exclude: VERSION - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell.git -- GitLab