add yamllint to lefthook

This commit is contained in:
2026-01-02 19:25:50 +03:00
parent 188756501a
commit 19ae4632ea
2 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ extends: default
ignore:
- ".ansible/"
- ".crush/"
- ".venv/"
- ".vscode/"
- "galaxy.roles/"
rules:

View File

@@ -18,6 +18,10 @@ pre-commit:
glob: "**/*.py"
run: "mypy {staged_files}"
- name: "yamllint"
glob: "**/*.{yml,yaml}"
run: "uv run yamllint --config-file .yamllint.yml --format colored {staged_files}"
- name: "gitleaks"
run: "gitleaks git --staged"