add yamllint to lefthook
This commit is contained in:
@@ -2,6 +2,9 @@ extends: default
|
|||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
- ".ansible/"
|
- ".ansible/"
|
||||||
|
- ".crush/"
|
||||||
|
- ".venv/"
|
||||||
|
- ".vscode/"
|
||||||
- "galaxy.roles/"
|
- "galaxy.roles/"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ pre-commit:
|
|||||||
glob: "**/*.py"
|
glob: "**/*.py"
|
||||||
run: "mypy {staged_files}"
|
run: "mypy {staged_files}"
|
||||||
|
|
||||||
|
- name: "yamllint"
|
||||||
|
glob: "**/*.{yml,yaml}"
|
||||||
|
run: "uv run yamllint --config-file .yamllint.yml --format colored {staged_files}"
|
||||||
|
|
||||||
- name: "gitleaks"
|
- name: "gitleaks"
|
||||||
run: "gitleaks git --staged"
|
run: "gitleaks git --staged"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user