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.

Change-Id: Iacf544dfffa0e68c369e19c96cce67d04cc22c68
Related-Bug: #2019875
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2023-05-26 14:03:23 +02:00
parent e861134a9d
commit 33266fbb90
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
---
parseable: true
exclude_paths:
- roles/collect_logs/files/collect-container-logs.sh
skip_list:
# Add skips here only as last resort, like:
- role-name

View File

@ -28,7 +28,7 @@ repos:
- flake8-black>=0.1.1
language_version: python3
- 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

@ -35,6 +35,10 @@ commands = bindep test
[testenv:linters]
basepython = python3
deps =
pre-commit>=1.20.0
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
setenv =
ANSIBLE_LIBRARY=./library
commands =