summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-12-19 15:55:10 +0000
committerStephen Finucane <stephen@that.guru>2017-12-19 15:55:10 +0000
commita2a873d58afb91143c3b71c9037384458043c080 (patch)
treeebcc70e4d50af1b650d3c4592fae4898b3f226c7 /tox.ini
parent638e6467669d5ebc2111a5f7fb2c5612a8bcf1e5 (diff)
downloadsphinx-git-a2a873d58afb91143c3b71c9037384458043c080.tar.gz
tox: Add documentation for all targets
This should make 'tox -av' more helpful. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini32
1 files changed, 23 insertions, 9 deletions
diff --git a/tox.ini b/tox.ini
index 22a34f6f8..4b462d612 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,15 @@
[tox]
-minversion=2.0
-envlist=docs,flake8,mypy,coverage,py{27,34,35,36,py},du{11,12,13,14}
+minversion = 2.0
+envlist = docs,flake8,mypy,coverage,py{27,34,35,36,py},du{11,12,13,14}
[testenv]
-passenv = https_proxy http_proxy no_proxy
+passenv =
+ https_proxy http_proxy no_proxy
+description =
+ py{27,34,35,36,py}: Run unit tests against {envname}.
+ du{11,12,13,14}: Run unit tests with the given version of docutils.
+ coverage: Run code coverage checks.
+
# TODO(stephenfin) Replace this with the 'extras' config option when tox 2.4 is
# widely available, likely some time after the Ubuntu 18.04 release
#
@@ -21,22 +27,30 @@ commands=
{envpython} -Wall tests/run.py --durations 25 {posargs}
[testenv:flake8]
-commands=flake8
+description =
+ Run style checks.
+commands =
+ flake8
[testenv:pylint]
-deps=
+description =
+ Run source code analyzer.
+deps =
pylint
{[testenv]deps}
-commands=
+commands =
pylint --rcfile utils/pylintrc sphinx
[testenv:mypy]
-basepython=python3
-deps=
+description =
+ Run type checks.
+deps =
mypy
commands=
mypy sphinx/
[testenv:docs]
-commands=
+description =
+ Build documentation.
+commands =
python setup.py build_sphinx {posargs}