mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
Add astl for fast local Ansible static linting (#13472)
This commit is contained in:
@@ -9,6 +9,7 @@ pre-commit:
|
||||
ANSIBLE_STDOUT_CALLBACK: default
|
||||
script:
|
||||
- pre-commit run --all-files --show-diff-on-failure
|
||||
- pre-commit run ansible-lint --hook-stage manual --all-files --show-diff-on-failure
|
||||
cache:
|
||||
key: pre-commit-2
|
||||
paths:
|
||||
|
||||
@@ -28,10 +28,16 @@ repos:
|
||||
exclude: "^.git"
|
||||
files: "\\.sh$"
|
||||
|
||||
- repo: https://github.com/arhuman/ansible-static-lint
|
||||
rev: v0.5.0
|
||||
hooks:
|
||||
- id: astl
|
||||
|
||||
- repo: https://github.com/ansible/ansible-lint
|
||||
rev: v25.11.0
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
stages: [manual]
|
||||
additional_dependencies:
|
||||
- ansible-core>=2.18.0,<2.19.0
|
||||
- jmespath==1.0.1
|
||||
|
||||
Reference in New Issue
Block a user