chore(pre-commit): check YAML files using yamllint

This commit is contained in:
Dafydd Jones 2020-07-02 05:18:01 +01:00
parent 5bccc810ba
commit 3f26ea7cd4

View file

@ -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$