From f41f9f77c9d894b4aae2b9916b0812dcc19c21c5 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 30 May 2018 14:59:29 +0100 Subject: [PATCH] tox: Group targets and tool configuration together Easy readability win. Change-Id: Ic93c57cf2ffd73d75a88bc1efc8d67ee163a6c1f Signed-off-by: Stephen Finucane --- tox.ini | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tox.ini b/tox.ini index b0b2a1a9..d6f43fe9 100644 --- a/tox.ini +++ b/tox.ini @@ -28,6 +28,10 @@ commands = {posargs} basepython = python3 commands = python setup.py build_sphinx +[testenv:releasenotes] +basepython = python3 +commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html + [testenv:cover] basepython = python3 commands = @@ -38,6 +42,13 @@ commands = basepython = python3 commands = bandit -r oslo_log -x tests -n5 +[testenv:lower-constraints] +basepython = python3 +deps = + -c{toxinidir}/lower-constraints.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt + [flake8] # E123, E125 skipped as they are invalid PEP-8. @@ -47,14 +58,3 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py [hacking] import_exceptions = oslo_log._i18n - -[testenv:releasenotes] -basepython = python3 -commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html - -[testenv:lower-constraints] -basepython = python3 -deps = - -c{toxinidir}/lower-constraints.txt - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/requirements.txt