67f98f8666
* Replace .testr.conf by .stestr.conf for migration and update .gitignore and test-requirements.txt files accordingly * Use py3 as the default runtime for tox and 3.18.0 as the minversion for tox Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com> Change-Id: If2662e223ad52c8cae965eb6bdf880c1dce962f2
38 lines
744 B
INI
38 lines
744 B
INI
[tox]
|
|
envlist = py3,pep8
|
|
minversion = 3.18.0
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
userdevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
setenv =
|
|
PYTHONPATH = .
|
|
commands =
|
|
flake8
|
|
check-uuid --package heat_tempest_plugin
|
|
|
|
[testenv:uuidgen]
|
|
setenv =
|
|
PYTHONPATH = .
|
|
commands =
|
|
check-uuid --fix --package heat_tempest_plugin
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
# W504 line break after binary operator
|
|
# E741 ambiguous variable name 'l'
|
|
ignore = W504,E741
|
|
exclude=.venv,.git,.tox,*lib/python*,private,.eggs
|