
Latest g-r version of bandit does not require a bandit.yaml any longer. This removes the bandit.yaml and the anchor gate profile (which was not part of a gate job). Change-Id: I1f6f9b8590f44e15662ea2f4212fbd68c072e422
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 -r anchor
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,anchor/asn1/*py
|
|
max-complexity=25
|