
Asn1 modules are autogenerated and not covered by pep8 Change-Id: I7a4e9c308001ed3051e68d2a27e454977f6e787b
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-bandit.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
|