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.
This commit is contained in:
Patryk Gutowski
2022-07-25 10:29:37 -07:00
committed by GitHub
parent eded7ee270
commit 25b6a36b0d
+3 -3
View File
@@ -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: