Fixes for ansible-lint in tox linter job

This patch updated ansible-lint version on pre-commit configuration
file and updates tox.ini to install ansible and collections needed for
ansible-lint validation.

Closes-Bug: #2019875

Change-Id: Ib68f5b26ea5672d294709a8a1d7e725133be0203
This commit is contained in:
Douglas Viroel 2023-05-16 14:42:57 -03:00
parent f6cb4cde9c
commit 941bbcdfff
4 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
---
exclude_paths:
- roles/validate-ui/.travis.yml
- roles/oooci-build-images/tasks/main.yaml # the role 'discover-latest-image' was not found
parseable: true
quiet: false
skip_list:

View File

@ -29,7 +29,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/ansible/ansible-lint.git
rev: v5.3.2
rev: v6.16.0
hooks:
- id: ansible-lint
always_run: true

View File

@ -1,3 +1,4 @@
---
collections:
- name: community.general # molecule uses 'ini_file'
- name: ansible.posix

View File

@ -57,5 +57,7 @@ commands = {posargs}
[testenv:linters]
deps =
pre-commit>=1.20.0
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
python -m pre_commit run -a