![David Stanek](/assets/img/avatar_default.png)
The will now run flake8 on all Python files and bashate on all shell scripts. Right now I'm ignoring the bashate errors, since there were so many of them. Follow up patches will start fixing those issues. A few Python files had minor modifications to pass flake8. Change-Id: I5f773eb6ea9f1311aa045951ff9bdad16cca6491
32 lines
816 B
INI
32 lines
816 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 E001,E002,E003,E010,E011,E020,E041"
|