- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: Run yamllint
description: Check YAML files with yamllint
args: [--strict, -c=.github/linters/.yaml-lint.yml]
exclude: ^mkdocs\.yml$
types: [yaml]
files: \.ya?ml$
---
# https://yamllint.readthedocs.io/en/stable/
extends: default
rules:
colons: disable
comments: disable
comments-indentation: disable
document-start: disable
line-length: disable
truthy: false
https://github.com/adrienverge/yamllint
https://yamllint.readthedocs.io/en/stable/
https://yamllint.readthedocs.io/en/stable/integration.html#integration-with-pre-commit
https://yamllint.readthedocs.io/en/stable/rules.html
Example pre-commit config entry:
Example:
.github/linters/.yaml-lint.yml