
Anchor currently fixes the version of bandit to use as 0.10.0. And because it was in a separate test-bandit-requirements.txt file, the OpenStack proposal bot never updated it. This change removes the separate file and merges into regular test requirements. As a result, bandit version will jump to 0.17.3 Change-Id: I0988f603d20a2bd21928d1bf009e32db901168a2
50 lines
1.1 KiB
INI
50 lines
1.1 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pypy,py27,py34,pep8,docs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
coverage erase
|
|
python setup.py testr --coverage --slowest --testr-args='{posargs}'
|
|
coverage combine
|
|
coverage report -m
|
|
coverage erase
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
doc8
|
|
sphinx
|
|
commands =
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees doc/source doc/build/html
|
|
doc8 --allow-long-titles doc/source
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs} anchor
|
|
flake8 {posargs} tests
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
|
coverage combine
|
|
coverage xml
|
|
|
|
[testenv:bandit]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = bandit -c bandit.yaml -r anchor -n5 -p anchor_conservative
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,anchor/asn1/*py
|
|
max-complexity=25
|