Skip to content

Commit 6cda6ad

Browse files
committed
test(yamllint): exclude auto-generated Copier files from linting
1 parent dd7cb56 commit 6cda6ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ repos:
5353
# 1. SLS files under directory `test/` which are state files
5454
# 2. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
5555
# 3. YAML files heavily reliant on Jinja
56+
# 4. `.copier-answers.yml` and its variants which are auto-generated
5657
files: |
5758
(?x)^(
5859
.*\.yaml|
@@ -64,6 +65,7 @@ repos:
6465
)$
6566
exclude: |
6667
(?x)^(
68+
\.copier-answers(\..+)?\.ya?ml|
6769
kitchen.vagrant.yml|
6870
test/.*/states/.*\.sls
6971
)$

0 commit comments

Comments
 (0)