system-config/tox.ini
Mohammed Naser a99f033a08 Switch ansible-lint to using multiple -x options
ansible-lint 3.4.22 seems to have introduced a change in behaviour
in how it parses the excludes (-x) back in March[1]. However, it
seems that the new release never got pushed to PyPi until now.

This has resulted in the linting jobs failing, so switching the
format to be the new one instead of pinning to an older release.

[1]: https://github.com/willthames/ansible-lint/commit/96d0a0bc

Change-Id: I446e734364298e90a64063e811343aa11430765f
2018-06-17 10:17:04 -04:00

34 lines
813 B
INI

[tox]
minversion = 1.6
envlist = linters
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:linters]
whitelist_externals = bash
commands =
flake8
{toxinidir}/tools/run-bashate.sh
python {toxinidir}/tools/sorted_modules_env.py {toxinidir}/modules.env
python {toxinidir}/tools/irc_checks.py
# Ansible Lint Check
bash -c "find playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint -x ANSIBLE0004 -x ANSIBLE0006 -x ANSIBLE0007 -x ANSIBLE0011 \
-x ANSIBLE0012 -x ANSIBLE0013 -x ANSIBLE0015"
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
show-source = True
exclude = .tox,.eggs
ignore = E125,H
select = H231