40 lines
781 B
INI
40 lines
781 B
INI
[tox]
|
|
envlist = pep8,py3
|
|
skipsdist = True
|
|
skip_missing_interpreters = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
install_command =
|
|
pip install {opts} {packages}
|
|
commands = stestr run {posargs}
|
|
|
|
[testenv:py3]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:py39]
|
|
basepython = python3.9
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:py311]
|
|
basepython = python3.11
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:py312]
|
|
basepython = python3.12
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = flake8 {posargs} charms_openstack unit_tests
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E402,E226,W504
|