7be58d6af8
* Remove unused files babel.cfg and openstack-common.conf. * Remove obsolete entries from setup.cfg. * Remove six as requirement * Switch to newer hacking version and fix all problems. * Remove Babel requirement, update requirements for python3 Change-Id: I1fc46288e54a5b787afbd9ee31b32a0e7d28c6de
48 lines
1.2 KiB
INI
48 lines
1.2 KiB
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = py3,pep8,docs
|
|
skipsdist = True
|
|
# this allows tox to infer the base python from the environment name
|
|
# and override any basepython configured in this file
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python3
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
coverage erase
|
|
{[testenv]commands}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report --show-missing
|
|
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# E126: from PEP8 upstream, 'most folk agree that its bad'.
|
|
# E128: like E126.
|
|
# E741 ambiguous variable name 'l'
|
|
# W503 line break before binary operator
|
|
ignore = E123,E125,E126,E128,E741,W503,H803
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|