079396a691
Since [1] the project supports Python 3.7. It is also a good idea to move away from ostestr to stestr, as all OpenStack projects did already. [1] - https://review.opendev.org/715634 Change-Id: I68bb89e441cba373f3c781ec0f4418c3969c8f85
34 lines
727 B
INI
34 lines
727 B
INI
[tox]
|
|
envlist = py37,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
basepython = python3
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONDONTWRITEBYTECODE = 1
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.UTF-8
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TESTS_DIR=./gerritbot/tests/unit/
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = rm
|
|
commands =
|
|
rm -f .testrepository/times.dbm
|
|
stestr run {posargs}
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,*.egg
|