fix(pre-commit): exclude Copier files from yamllint

This commit is contained in:
Dafydd Jones 2024-12-04 18:20:06 +00:00
parent 8403a77893
commit b425191b4e

View file

@ -71,6 +71,7 @@ repos:
# 1. SLS files under directory `test/` which are state files
# 2. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
# 3. YAML files heavily reliant on Jinja
# 4. `.copier-answers.yml` and related files which are auto-generated
files: |
(?x)^(
.*\.yaml|
@ -82,6 +83,7 @@ repos:
)$
exclude: |
(?x)^(
\.copier-answers(\..+)?\.ya?ml|
kitchen.vagrant.yml|
test/.*/states/.*\.sls
)$