add yamllint to lefthook
This commit is contained in:
@@ -2,6 +2,9 @@ extends: default
|
||||
|
||||
ignore:
|
||||
- ".ansible/"
|
||||
- ".crush/"
|
||||
- ".venv/"
|
||||
- ".vscode/"
|
||||
- "galaxy.roles/"
|
||||
|
||||
rules:
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user