47 lines
1.1 KiB
INI
47 lines
1.1 KiB
INI
[tox]
|
|
envlist = pep8,py3
|
|
skipsdist = True
|
|
# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages.
|
|
sitepackages = False
|
|
# NOTE(beisner): Avoid false positives by not skipping missing interpreters.
|
|
skip_missing_interpreters = False
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
install_command = pip install {opts} {packages}
|
|
commands = ostestr {posargs}
|
|
|
|
[testenv:py27]
|
|
basepython = python2.7
|
|
# Reactive source charms are Python3-only, but a py27 unit test target
|
|
# is required by OpenStack Governance. Remove this shim as soon as
|
|
# permitted. https://governance.openstack.org/tc/reference/cti/python_cti.html
|
|
deps =
|
|
whitelist_externals = true
|
|
commands = true
|
|
|
|
[testenv:py3]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:py36]
|
|
basepython = python3.6
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:py37]
|
|
basepython = python3.7
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E402,E226
|