ansible-lint: Adjust pre-commit hooks dependencies
Dropping the ansible dependencies for ansible-lint will allow us to catch missing dependencies collections in galaxy.yml. For collections needed for contrib/ or tests/ (i.e: not part of core kubespray dependencies), we can just configure ansible-lint to mock them. This mean it won't check the mocked module parameters, but for those area of the code base it's an acceptable trade-off.pull/11606/head
parent
8aa4c9ac0c
commit
a7ace2e55b
|
@ -37,3 +37,5 @@ exclude_paths:
|
||||||
- tests/files/custom_cni/cilium.yaml
|
- tests/files/custom_cni/cilium.yaml
|
||||||
- venv
|
- venv
|
||||||
- .github
|
- .github
|
||||||
|
mock_modules:
|
||||||
|
- gluster.gluster.gluster_volume
|
||||||
|
|
|
@ -39,7 +39,6 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- ansible==9.8.0
|
|
||||||
- jsonschema==4.22.0
|
- jsonschema==4.22.0
|
||||||
- jmespath==1.0.1
|
- jmespath==1.0.1
|
||||||
- netaddr==1.3.0
|
- netaddr==1.3.0
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
collections:
|
|
||||||
- name: gluster.gluster
|
|
Loading…
Reference in New Issue