فهرست منبع

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.
Patryk Gutowski 3 سال پیش
والد
کامیت
25b6a36b0d
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      .pre-commit-config.yaml

+ 3 - 3
.pre-commit-config.yaml

@@ -23,12 +23,12 @@ repos:
       - id: check-yaml
       - id: check-yaml
       - id: detect-private-key
       - id: detect-private-key
       - id: end-of-file-fixer
       - id: end-of-file-fixer
-        exclude: '^(.*/fuzzer_corpus/.*)$'
+        exclude: '^(.*/fuzzer_corpus/.*|.*\.svg)$'
       - id: mixed-line-ending
       - id: mixed-line-ending
         args: ['--fix=lf']
         args: ['--fix=lf']
-        exclude: '^(.*/fuzzer_corpus/.*)$'
+        exclude: '^(.*/fuzzer_corpus/.*|.*\.svg)$'
       - id: trailing-whitespace
       - id: trailing-whitespace
-        exclude: '^(.*/fuzzer_corpus/.*|.*/testdata/.*\.golden)$'
+        exclude: '^(.*/fuzzer_corpus/.*|.*/testdata/.*\.golden|.*\.svg)$'
   - repo: https://github.com/google/pre-commit-tool-hooks
   - repo: https://github.com/google/pre-commit-tool-hooks
     rev: cb78d9293306d9f737c64d9702bbaa88e157caaa # frozen: v1.2.2
     rev: cb78d9293306d9f737c64d9702bbaa88e157caaa # frozen: v1.2.2
     hooks:
     hooks: