We don't really have unit tests in the repository and any py3x venv would not really be useful (the tests are executed through tempest), but let's remove the old dependency anyway and depend on stestr like all the other OpenStack projects. Change-Id: I52d06f1c1e141cb455fb7a823a27be532afb4c16
38 lines
1.0 KiB
INI
38 lines
1.0 KiB
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = pep8
|
|
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]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
|
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# W503 line break before binary operator
|
|
# W504 line break after binary operator
|
|
# H101 include name with TODO
|
|
# reason: no real benefit
|
|
show-source = True
|
|
ignore = E123,E125,W503,W504,H101
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|