mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
chore(pre-commit): check YAML files using yamllint
This commit is contained in:
parent
5bccc810ba
commit
3f26ea7cd4
1 changed files with 16 additions and 0 deletions
|
@ -17,3 +17,19 @@ repos:
|
|||
hooks:
|
||||
- id: rubocop
|
||||
exclude: ^Gemfile\.lock$
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.23.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Check YAML syntax with yamllint
|
||||
args: [--strict]
|
||||
types: [file]
|
||||
files: >
|
||||
(?x)^(
|
||||
\.salt-lint|
|
||||
\.yamllint|
|
||||
.*\.example|
|
||||
test/.*\.sls|
|
||||
.*\.(yaml|yml)
|
||||
)$
|
||||
exclude: ^test/.*/states/.*\.sls$
|
||||
|
|
Loading…
Add table
Reference in a new issue