Cookiecutter Template for new Oslo libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

minversion = 3.1.0
envlist = py36,pep8
ignore_basepython_conflict = True
skipsdist = True
basepython = python3
usedevelop = True
deps =
commands = stestr run --slowest {posargs}
deps = -c{toxinidir}/lower-constraints.txt
commands = flake8 {posargs}
commands = {posargs}
deps = {[testenv]deps}
setenv =
PYTHON=coverage run --source oslo_{{cookiecutter.module_name}} --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
whitelist_externals =
deps =
commands =
rm -rf doc/build doc/source/reference/api
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
whitelist_externals = rm
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
commands =
mypy oslo_{{ cookiecutter.module_name }}
commands = oslo_debug_helper {posargs}
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _