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
|
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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user