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.

75 lines
2.1 KiB

minversion = 2.0
envlist = py38,pep8
skipsdist = True
ignore_basepython_conflict = true
basepython = python3
usedevelop = True
setenv =
deps =
commands = stestr run {posargs}
whitelist_externals = stestr
commands =
python -m pip install -q -e "git+file://{toxinidir}/../cliff#egg=cliff"
python -m pip install -q -e "git+file://{toxinidir}/../keystoneauth#egg=keystoneauth"
python -m pip install -q -e "git+file://{toxinidir}/../openstacksdk#egg=openstacksdk"
python -m pip freeze
stestr run {posargs}
whitelist_externals = stestr
deps =
hacking>=3.0.1,<3.1.0 # Apache-2.0
flake8-import-order>=0.17.1 # LGPLv3
commands = flake8
commands = {posargs}
commands =
python test --coverage --coverage-package-name=osc_lib --testr-args='{posargs}'
coverage report
commands = oslo_debug_helper -t osc_lib/tests {posargs}
deps =
commands =
sphinx-apidoc -o doc/api osc_lib osc_lib/tests
# Create ChangeLog file
python sdist
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
show-source = True
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools
# If 'ignore' is not set there are default errors and warnings that are set
# Doc:
ignore = W504
import-order-style = pep8
application-import-names = osc_lib
filename = *.py
deps =