From 6cda6adc52c836406eaeee618ae2228db3e0a0bc Mon Sep 17 00:00:00 2001 From: Dafydd Jones Date: Fri, 9 May 2025 22:50:48 +0100 Subject: [PATCH] test(yamllint): exclude auto-generated Copier files from linting --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 502616c3..3dde1eeb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,6 +53,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 its variants which are auto-generated files: | (?x)^( .*\.yaml| @@ -64,6 +65,7 @@ repos: )$ exclude: | (?x)^( + \.copier-answers(\..+)?\.ya?ml| kitchen.vagrant.yml| test/.*/states/.*\.sls )$