From 25b6a36b0d323fc81f0afe149552b5b0f6fc1350 Mon Sep 17 00:00:00 2001 From: Patryk Gutowski <37260994+pacion@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:29:37 +0200 Subject: [PATCH] Exclude .svg from pre-commit #1655 (#1688) There was unnecessary checking the .svg images (anyway it did not help a lot as mentioned on the #1655 #1652 issues). Regex upgraded so it excludes all .svg. Tested it on the other files and I think it's correct for now. --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04509a2fe291..a9bef018bd61 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,12 +23,12 @@ repos: - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - exclude: '^(.*/fuzzer_corpus/.*)$' + exclude: '^(.*/fuzzer_corpus/.*|.*\.svg)$' - id: mixed-line-ending args: ['--fix=lf'] - exclude: '^(.*/fuzzer_corpus/.*)$' + exclude: '^(.*/fuzzer_corpus/.*|.*\.svg)$' - id: trailing-whitespace - exclude: '^(.*/fuzzer_corpus/.*|.*/testdata/.*\.golden)$' + exclude: '^(.*/fuzzer_corpus/.*|.*/testdata/.*\.golden|.*\.svg)$' - repo: https://github.com/google/pre-commit-tool-hooks rev: cb78d9293306d9f737c64d9702bbaa88e157caaa # frozen: v1.2.2 hooks: