Browse Source

Bugfix/code inspection. (#11384)

- Make ansible-galaxy collection dependencies explicit
- Reorganized requirements.yml
- Adding required collections to galaxy.yml
- Ansible 9.6.0 was yanked on Pypi
- Sync pre-commit requirements with requirements.txt

Signed-off-by: Bas Meijer <bas.meijer@enexis.nl>
pull/11230/head
Bas 3 months ago
committed by GitHub
parent
commit
dd51ef6f96
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions
  1. 4
      .pre-commit-config.yaml
  2. 4
      galaxy.yml
  3. 2
      requirements.txt
  4. 3
      tests/requirements.yml

4
.pre-commit-config.yaml

@ -39,10 +39,10 @@ repos:
hooks: hooks:
- id: ansible-lint - id: ansible-lint
additional_dependencies: additional_dependencies:
- ansible==9.5.1
- ansible==9.8.0
- jsonschema==4.22.0 - jsonschema==4.22.0
- jmespath==1.0.1 - jmespath==1.0.1
- netaddr==1.2.1
- netaddr==1.3.0
- distlib - distlib
- repo: https://github.com/golangci/misspell - repo: https://github.com/golangci/misspell

4
galaxy.yml

@ -15,6 +15,10 @@ license_file: LICENSE
dependencies: dependencies:
ansible.utils: '>=2.5.0' ansible.utils: '>=2.5.0'
community.general: '>=3.0.0' community.general: '>=3.0.0'
ansible.netcommon: '>=5.3.0'
ansible.posix: '>=1.5.4'
community.docker: '>=3.11.0'
kubernetes.core: '>=2.4.2'
manifest: manifest:
directives: directives:
- recursive-exclude tests ** - recursive-exclude tests **

2
requirements.txt

@ -1,4 +1,4 @@
ansible==9.6.0
ansible==9.8.0
# Needed for jinja2 json_query templating # Needed for jinja2 json_query templating
jmespath==1.0.1 jmespath==1.0.1
# Needed for ansible.utils.validate module # Needed for ansible.utils.validate module

3
tests/requirements.yml

@ -0,0 +1,3 @@
---
collections:
- name: gluster.gluster
Loading…
Cancel
Save