2010-07-23 10:37:44 +01:00
|
|
|
[tox]
|
2018-11-11 09:33:17 -08:00
|
|
|
minversion = 2.4.0
|
2018-09-07 16:15:20 -07:00
|
|
|
envlist = docs,flake8,mypy,coverage,py{35,36,37,38},du{12,13,14}
|
2010-07-23 10:37:44 +01:00
|
|
|
|
|
|
|
|
[testenv]
|
2018-01-05 22:25:34 +09:00
|
|
|
usedevelop = True
|
2017-12-19 15:55:10 +00:00
|
|
|
passenv =
|
2018-03-20 23:35:32 +09:00
|
|
|
https_proxy http_proxy no_proxy PERL PERL5LIB PYTEST_ADDOPTS EPUBCHECK_PATH
|
2017-12-19 15:55:10 +00:00
|
|
|
description =
|
2018-09-07 16:15:20 -07:00
|
|
|
py{35,36,37,38}: Run unit tests against {envname}.
|
2018-08-24 22:01:41 +09:00
|
|
|
du{12,13,14}: Run unit tests with the given version of docutils.
|
2017-10-10 14:10:11 +01:00
|
|
|
deps =
|
2017-10-27 10:11:10 +01:00
|
|
|
du12: docutils==0.12
|
|
|
|
|
du13: docutils==0.13.1
|
|
|
|
|
du14: docutils==0.14
|
2018-11-11 09:33:17 -08:00
|
|
|
extras =
|
|
|
|
|
test
|
2012-05-01 15:21:12 +09:00
|
|
|
setenv =
|
2018-01-14 22:02:53 +00:00
|
|
|
PYTHONWARNINGS = all,ignore::ImportWarning:pkgutil,ignore::ImportWarning:importlib._bootstrap,ignore::ImportWarning:importlib._bootstrap_external,ignore::ImportWarning:pytest_cov.plugin,ignore::DeprecationWarning:site,ignore::DeprecationWarning:_pytest.assertion.rewrite,ignore::DeprecationWarning:_pytest.fixtures,ignore::DeprecationWarning:distutils
|
2010-07-23 11:16:17 +01:00
|
|
|
commands=
|
2018-10-29 23:59:31 +09:00
|
|
|
pytest --durations 25 {posargs}
|
2010-07-23 11:16:17 +01:00
|
|
|
|
2015-03-07 15:45:43 +09:00
|
|
|
[testenv:flake8]
|
2018-06-20 09:53:29 +01:00
|
|
|
basepython = python3
|
2017-12-19 15:55:10 +00:00
|
|
|
description =
|
|
|
|
|
Run style checks.
|
|
|
|
|
commands =
|
|
|
|
|
flake8
|
2015-11-10 03:40:48 +01:00
|
|
|
|
2017-10-05 09:16:05 +01:00
|
|
|
[testenv:pylint]
|
2018-06-20 09:53:29 +01:00
|
|
|
basepython = python3
|
2017-12-19 15:55:10 +00:00
|
|
|
description =
|
|
|
|
|
Run source code analyzer.
|
|
|
|
|
deps =
|
2017-10-05 09:16:05 +01:00
|
|
|
pylint
|
|
|
|
|
{[testenv]deps}
|
2017-12-19 15:55:10 +00:00
|
|
|
commands =
|
2017-10-05 09:16:05 +01:00
|
|
|
pylint --rcfile utils/pylintrc sphinx
|
|
|
|
|
|
2017-12-22 18:00:25 +00:00
|
|
|
[testenv:coverage]
|
2018-06-20 09:53:29 +01:00
|
|
|
basepython = python3
|
2017-12-22 18:00:25 +00:00
|
|
|
description =
|
|
|
|
|
Run code coverage checks.
|
|
|
|
|
setenv =
|
|
|
|
|
PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg
|
|
|
|
|
commands =
|
|
|
|
|
{[testenv]commands}
|
|
|
|
|
coverage report
|
|
|
|
|
|
2017-02-28 17:31:31 +00:00
|
|
|
[testenv:mypy]
|
2018-06-20 09:53:29 +01:00
|
|
|
basepython = python3
|
2017-12-19 15:55:10 +00:00
|
|
|
description =
|
|
|
|
|
Run type checks.
|
|
|
|
|
deps =
|
2017-02-28 17:31:31 +00:00
|
|
|
mypy
|
2018-12-04 01:52:07 +09:00
|
|
|
docutils-stubs
|
2017-02-28 17:31:31 +00:00
|
|
|
commands=
|
|
|
|
|
mypy sphinx/
|
|
|
|
|
|
2017-02-24 13:25:51 -05:00
|
|
|
[testenv:docs]
|
2018-06-20 09:53:29 +01:00
|
|
|
basepython = python3
|
2017-12-19 15:55:10 +00:00
|
|
|
description =
|
|
|
|
|
Build documentation.
|
2019-05-04 12:42:17 +09:00
|
|
|
extras =
|
|
|
|
|
docs
|
2017-12-19 15:55:10 +00:00
|
|
|
commands =
|
2017-10-03 10:25:10 +01:00
|
|
|
python setup.py build_sphinx {posargs}
|
2018-01-19 13:55:17 +00:00
|
|
|
|
|
|
|
|
[testenv:bindep]
|
|
|
|
|
description =
|
|
|
|
|
Install binary dependencies.
|
|
|
|
|
deps =
|
|
|
|
|
bindep
|
|
|
|
|
commands =
|
|
|
|
|
bindep test
|