mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-05 10:41:12 -03:30
Switch to upstream ansible-lint pre-commit hook
This way, the hook is self contained and does not depend on a previous virtualenv installation.
This commit is contained in:
@@ -35,16 +35,18 @@ repos:
|
|||||||
exclude: "^.git"
|
exclude: "^.git"
|
||||||
files: "\\.sh$"
|
files: "\\.sh$"
|
||||||
|
|
||||||
- repo: local
|
- repo: https://github.com/ansible/ansible-lint
|
||||||
|
rev: v24.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
name: ansible-lint
|
|
||||||
entry: ansible-lint -v
|
|
||||||
language: python
|
|
||||||
pass_filenames: false
|
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- .[community]
|
- ansible==9.5.1
|
||||||
|
- jsonschema==4.22.0
|
||||||
|
- jmespath==1.0.1
|
||||||
|
- netaddr==1.2.1
|
||||||
|
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
- id: ansible-syntax-check
|
- id: ansible-syntax-check
|
||||||
name: ansible-syntax-check
|
name: ansible-syntax-check
|
||||||
entry: env ANSIBLE_INVENTORY=inventory/local-tests.cfg ANSIBLE_REMOTE_USER=root ANSIBLE_BECOME="true" ANSIBLE_BECOME_USER=root ANSIBLE_VERBOSITY="3" ansible-playbook --syntax-check
|
entry: env ANSIBLE_INVENTORY=inventory/local-tests.cfg ANSIBLE_REMOTE_USER=root ANSIBLE_BECOME="true" ANSIBLE_BECOME_USER=root ANSIBLE_VERBOSITY="3" ansible-playbook --syntax-check
|
||||||
|
|||||||
Reference in New Issue
Block a user