746cbd0bd8
This patch set makes Armada pep8 compliant. Note the hapi/** is autogenerated and therefore should be excluded from linting. Change-Id: I123eefb543f9bd9cf0bc6bd98ed95646d8d72cc3
47 lines
979 B
INI
47 lines
979 B
INI
[tox]
|
|
skipsdist = True
|
|
envlist = py27, pep8, coverage, bandit
|
|
|
|
[testenv]
|
|
basepython=python2.7
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv=
|
|
VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python -V
|
|
py.test -vvv -s --ignore=hapi
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator --config-file=etc/armada/config-generator.conf
|
|
|
|
[testenv:genpolicy]
|
|
commands =
|
|
oslopolicy-sample-generator --config-file=etc/armada/policy-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:bandit]
|
|
commands =
|
|
bandit -r armada -x armada/tests -n 5
|
|
|
|
[testenv:coverage]
|
|
commands =
|
|
nosetests -w armada/tests/unit --cover-package=armada --with-coverage --cover-tests --exclude=.tox
|
|
|
|
[flake8]
|
|
filename= *.py
|
|
ignore =
|
|
exclude= .git, .idea, .tox, *.egg-info, *.eggs, bin, dist, hapi
|