Add astl for fast local Ansible static linting (#13472)

This commit is contained in:
arhuman
2026-09-08 12:18:30 +00:00
committed by GitHub
parent 6aee13b285
commit b7b08b33c4
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ pre-commit:
ANSIBLE_STDOUT_CALLBACK: default ANSIBLE_STDOUT_CALLBACK: default
script: script:
- pre-commit run --all-files --show-diff-on-failure - pre-commit run --all-files --show-diff-on-failure
- pre-commit run ansible-lint --hook-stage manual --all-files --show-diff-on-failure
cache: cache:
key: pre-commit-2 key: pre-commit-2
paths: paths:
+6
View File
@@ -28,10 +28,16 @@ repos:
exclude: "^.git" exclude: "^.git"
files: "\\.sh$" files: "\\.sh$"
- repo: https://github.com/arhuman/ansible-static-lint
rev: v0.5.0
hooks:
- id: astl
- repo: https://github.com/ansible/ansible-lint - repo: https://github.com/ansible/ansible-lint
rev: v25.11.0 rev: v25.11.0
hooks: hooks:
- id: ansible-lint - id: ansible-lint
stages: [manual]
additional_dependencies: additional_dependencies:
- ansible-core>=2.18.0,<2.19.0 - ansible-core>=2.18.0,<2.19.0
- jmespath==1.0.1 - jmespath==1.0.1