Browse Source
Switch to upstream ansible-lint pre-commit hook
This way, the hook is self contained and does not depend on a previous
virtualenv installation.
pull/11244/head
Max Gautier
11 months ago
Failed to extract signature
1 changed files with
8 additions and
6 deletions
-
.pre-commit-config.yaml
|
|
@ -35,16 +35,18 @@ repos: |
|
|
|
exclude: "^.git" |
|
|
|
files: "\\.sh$" |
|
|
|
|
|
|
|
- repo: local |
|
|
|
- repo: https://github.com/ansible/ansible-lint |
|
|
|
rev: v24.5.0 |
|
|
|
hooks: |
|
|
|
- id: ansible-lint |
|
|
|
name: ansible-lint |
|
|
|
entry: ansible-lint -v |
|
|
|
language: python |
|
|
|
pass_filenames: false |
|
|
|
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 |
|
|
|
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 |
|
|
|