Fix ansible-lint for python 3.8
As linters and molecule jobs are failing with the issue [1][2]. Don't use ansible 2.10.0 It seems to have broken linters and molecule jobs, let's not use it till we fix those. [1]: https://zuul.opendev.org/t/openstack/build/69f12c622ed14c00bb4569d74e2155c7 [2]: https://zuul.opendev.org/t/openstack/build/82aa62a2b16e467bb08c23bc9b579a38 [3]: https://groups.google.com/g/ansible-project/c/yFnMgbjqYnU/m/4nTCm4w1BAAJ Change-Id: I1d68d1e5dfa5b2baa31c9f240695dcc2d9a24438
This commit is contained in:
parent
44a5e3bdcb
commit
a3a9cfc764
|
@ -9,3 +9,6 @@ skip_list:
|
|||
# E602 https://github.com/ansible/ansible-lint/issues/450
|
||||
- '602' # [E602] Don't compare to empty string
|
||||
- '701' # [E701] No 'galaxy_info' found
|
||||
- '208' # [E208] File permissions unset or incorrect
|
||||
- '106' # [E106] Role name {} does not match ^[a-z][a-z0-9_]+$ pattern
|
||||
- '303' # [E303] Using command rather than module
|
||||
|
|
|
@ -34,7 +34,7 @@ repos:
|
|||
types: [file, yaml]
|
||||
entry: yamllint --strict -f parsable
|
||||
- repo: https://github.com/ansible/ansible-lint.git
|
||||
rev: v4.2.0
|
||||
rev: 9da220ae3a11c10c10ee43284ad6cad6d8ba52b7
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
always_run: true
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
ansi2html
|
||||
ansible>=2.9,<2.10
|
||||
docker>=4.0.1
|
||||
paramiko>=2.5.0
|
||||
pytest
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -59,7 +59,7 @@ commands =
|
|||
[testenv:molecule]
|
||||
# basepython forces tox to use system python and avoid other python versions like pyenv ones
|
||||
# because those are unlikely to have the required libselinux library available.
|
||||
basepython=python
|
||||
basepython=python3
|
||||
deps = -r{toxinidir}/molecule-requirements.txt
|
||||
commands =
|
||||
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}
|
||||
|
|
Loading…
Reference in New Issue