Merge pull request #15 from dafyddj/fix/yamllint

fix(pre-commit): exclude Copier files from `yamllint`
This commit is contained in:
Dafydd Jones 2024-12-04 18:32:10 +00:00 committed by GitHub
commit cdf3940d09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,7 @@ repos:
rev: v5.0.0
hooks:
- id: check-added-large-files
name: Check for added large files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.30.0
hooks:
@ -71,6 +72,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 +84,7 @@ repos:
)$
exclude: |
(?x)^(
\.copier-answers(\..+)?\.ya?ml|
kitchen.vagrant.yml|
test/.*/states/.*\.sls
)$