Files
openstack-ansible/tox.ini
David Stanek 5c85bebfe0 Removes trailing whitespace for bashate
Change-Id: I5b0f2d8a128da887565aac0254a1d342b4ec9dc8
2015-08-20 16:51:32 +00:00

32 lines
811 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = docs,pep8
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/dev-requirements.txt
[testenv:docs]
commands=
python setup.py build_sphinx
# environment used by the -infra templated docs job
[testenv:venv]
deps = -r{toxinidir}/dev-requirements.txt
commands = {posargs}
[testenv:pep8]
whitelist_externals = bash
commands =
flake8 {posargs}
# Run bash8 during pep8 runs to ensure violations are caught by
# the check and gate queues
bash -c "find {toxinidir} \
-not -path '*/\.*' \ # stay out of the dot directories
-name '*sh' \ # all shell scripts please
-print0 | xargs -0 bashate -v -i E002,E003,E010,E011,E020,E041"