mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
Merge pull request #15 from dafyddj/fix/yamllint
fix(pre-commit): exclude Copier files from `yamllint`
This commit is contained in:
commit
cdf3940d09
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
)$
|
||||
|
|
Loading…
Add table
Reference in a new issue