Files
sphinx/tox.ini
T

109 lines
2.1 KiB
INI
Raw Normal View History

2010-07-23 10:37:44 +01:00
[tox]
minversion = 2.4.0
2020-06-14 13:38:55 +09:00
envlist = docs,flake8,mypy,twine,coverage,py{35,36,37,38,39},du{12,13,14,15}
2010-07-23 10:37:44 +01:00
[testenv]
usedevelop = True
2017-12-19 15:55:10 +00:00
passenv =
2020-03-03 23:09:13 +01:00
https_proxy
http_proxy
no_proxy
PERL
PERL5LIB
PYTEST_ADDOPTS
EPUBCHECK_PATH
TERM
2017-12-19 15:55:10 +00:00
description =
2020-01-23 00:54:49 +09:00
py{35,36,37,38,39}: 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 =
du12: docutils==0.12
du13: docutils==0.13.1
du14: docutils==0.14
2019-07-22 00:35:28 +09:00
du15: docutils==0.15
2020-01-23 00:50:57 +09:00
du16: docutils==0.16
extras =
test
2012-05-01 15:21:12 +09:00
setenv =
2020-12-29 19:09:15 +09:00
PYTHONWARNINGS = all,ignore::ImportWarning:importlib._bootstrap_external,ignore::DeprecationWarning:site,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:pip._vendor.packaging.version
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
2010-07-23 11:16:17 +01:00
commands=
2020-11-11 14:16:34 +01:00
python -X dev -m pytest --durations 25 {posargs}
2010-07-23 11:16:17 +01:00
2015-03-07 15:45:43 +09:00
[testenv:flake8]
basepython = python3
2017-12-19 15:55:10 +00:00
description =
Run style checks.
whitelist_externals =
flake8
2020-01-23 00:42:59 +09:00
extras =
lint
2017-12-19 15:55:10 +00:00
commands =
flake8 {posargs}
2020-11-11 12:00:27 +01:00
[testenv:isort]
basepython = python3
description =
Run import sorting checks.
whitelist_externals =
isort
extras =
lint
commands =
isort --check-only --diff .
2017-12-22 18:00:25 +00:00
[testenv:coverage]
basepython = python3
2017-12-22 18:00:25 +00:00
description =
Run code coverage checks.
setenv =
2020-08-14 00:48:41 +09:00
PYTEST_ADDOPTS = --cov sphinx --cov-config {toxinidir}/setup.cfg
2017-12-22 18:00:25 +00:00
commands =
{[testenv]commands}
coverage report
2017-02-28 17:31:31 +00:00
[testenv:mypy]
basepython = python3
2017-12-19 15:55:10 +00:00
description =
Run type checks.
2020-01-23 00:42:59 +09:00
extras =
lint
2017-02-28 17:31:31 +00:00
commands=
mypy sphinx/
2017-02-24 13:25:51 -05:00
[testenv:docs]
basepython = python3
2017-12-19 15:55:10 +00:00
description =
Build documentation.
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:docslint]
basepython = python3
description =
Lint documentation.
extras =
docs
commands =
python utils/doclinter.py CHANGES CONTRIBUTING.rst README.rst doc/
2020-06-14 13:38:55 +09:00
[testenv:twine]
basepython = python3
description =
Lint package.
deps =
twine
commands =
python setup.py release bdist_wheel sdist
twine check dist/*
2018-01-19 13:55:17 +00:00
[testenv:bindep]
description =
Install binary dependencies.
deps =
bindep
commands =
bindep test