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.

55 lines
1.6 KiB

minversion = 3.2
envlist = py3,pep8,docs
ignore_basepython_conflict = true
basepython = python3
deps =
commands = stestr run {posargs}
deps =
commands = {posargs}
ignore = E251
commands =
pre-commit run -a
# Run security linter
bandit -r stevedore -x tests -n5
ignore = E251,H405
show-source = True
deps =
commands = sphinx-build -a -E -W doc/source doc/build/html
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W releasenotes/source releasenotes/build/html
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
deps = bindep
commands = bindep test
usedevelop = False