tox: Trivial formatting changes
Change-Id: I8870cf849aec9d4bd1e59d911704ec2e4cabe09e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
626df3a5e9
commit
3f12bc6e33
72
tox.ini
72
tox.ini
@ -4,13 +4,14 @@ envlist = py3,pep8,releasenotes
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv =
|
||||||
OS_STDOUT_NOCAPTURE=False
|
VIRTUAL_ENV={envdir}
|
||||||
OS_STDERR_NOCAPTURE=False
|
OS_STDOUT_NOCAPTURE=False
|
||||||
|
OS_STDERR_NOCAPTURE=False
|
||||||
deps =
|
deps =
|
||||||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
@ -29,18 +30,40 @@ commands = {posargs}
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
PYTHON=coverage run --source keystonemiddleware --parallel-mode
|
PYTHON=coverage run --source keystonemiddleware --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
|
|
||||||
commands = oslo_debug_helper -t keystonemiddleware/tests {posargs}
|
commands = oslo_debug_helper -t keystonemiddleware/tests {posargs}
|
||||||
|
|
||||||
|
[testenv:docs]
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
commands=
|
||||||
|
doc8 doc/source
|
||||||
|
sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
|
[testenv:pdf-docs]
|
||||||
|
envdir = {toxworkdir}/docs
|
||||||
|
deps = {[testenv:docs]deps}
|
||||||
|
allowlist_externals =
|
||||||
|
make
|
||||||
|
rm
|
||||||
|
commands =
|
||||||
|
rm -rf doc/build/pdf
|
||||||
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
|
make -C doc/build/pdf
|
||||||
|
|
||||||
|
[testenv:releasenotes]
|
||||||
|
envdir = {toxworkdir}/docs
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
commands =
|
||||||
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# D100: Missing docstring in public module
|
# D100: Missing docstring in public module
|
||||||
# D101: Missing docstring in public class
|
# D101: Missing docstring in public class
|
||||||
@ -55,30 +78,9 @@ ignore = D100,D101,D102,D103,D104,D107,D401,W503,W504
|
|||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv,.tox,dist,doc,*egg,build
|
exclude = .venv,.tox,dist,doc,*egg,build
|
||||||
|
|
||||||
[testenv:docs]
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
|
||||||
commands=
|
|
||||||
doc8 doc/source
|
|
||||||
sphinx-build -W -b html doc/source doc/build/html
|
|
||||||
|
|
||||||
[testenv:pdf-docs]
|
|
||||||
envdir = {toxworkdir}/docs
|
|
||||||
deps = {[testenv:docs]deps}
|
|
||||||
allowlist_externals =
|
|
||||||
make
|
|
||||||
rm
|
|
||||||
commands =
|
|
||||||
rm -rf doc/build/pdf
|
|
||||||
sphinx-build -W -b latex doc/source doc/build/pdf
|
|
||||||
make -C doc/build/pdf
|
|
||||||
|
|
||||||
[testenv:releasenotes]
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
|
||||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions =
|
import_exceptions =
|
||||||
keystonemiddleware.i18n
|
keystonemiddleware.i18n
|
||||||
|
|
||||||
[doc8]
|
[doc8]
|
||||||
extensions = .rst, .yaml
|
extensions = .rst, .yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user