Exclude map XML files from non-breaking space hook

This excludes map XML files from the hook to check for non-breaking
spaces, as they are quite large, therefore take a long time to process
and shouldn't contain "0 A.D." anyway.
This commit is contained in:
Dunedan 2024-09-15 14:50:58 +02:00
parent e56ebb3f46
commit efbc165a08
Signed by: Dunedan
GPG Key ID: 885B16854284E0B2

View File

@ -43,7 +43,13 @@ repos:
language: pygrep language: pygrep
types: [text] types: [text]
files: ^binaries/ files: ^binaries/
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$) exclude: |
(?x)(
^binaries/data/mods/mod/art/.*\.xml$|
^binaries/data/mods/public/art/.*\.xml$|
^binaries/data/mods/public/maps/.*\.xml$|
\.dae$
)
- repo: https://github.com/scop/pre-commit-shfmt - repo: https://github.com/scop/pre-commit-shfmt
rev: v3.9.0-1 rev: v3.9.0-1
hooks: hooks: