6351214ca5
The 'do' is expected to be on the same line as the 'for' or 'while' in a loop declaration. Change-Id: I87591aac700af858e174c88cca03d06fe9688c59
32 lines
791 B
INI
32 lines
791 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 E003,E011"
|