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.

79 lines
2.1 KiB

minversion = 3.18.0
envlist = py3,pypy,pep8
# Need to set to False to have CHANGES generated
skipsdist = false
ignore_basepython_conflict = True
basepython = python3
usedevelop = True
setenv =
allowlist_externals = find
deps =
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
commands = flake8
commands = {posargs}
setenv =
PYTHON=coverage run --source os_testr --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
deps =
commands =
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
deps = {[testenv:docs]deps}
allowlist_externals =
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
commands = oslo_debug_helper {posargs}
deps =
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees \
-b html releasenotes/source releasenotes/build/html
allowlist_externals = rm
# E123, E125 skipped as they are invalid PEP-8.
# E731 skipped as assign a lambda expression
# H405 skipped as it wrongly recognizes a multiline string as docstring
# W504 line break after binary operator (W503 and W504 are incompatible
# and we need to choose one of them.
show-source = True
ignore = E123,E125,E731,H405,W504
builtins = _