2010-07-23 04:37:44 -05:00
|
|
|
[tox]
|
2018-11-11 11:33:17 -06:00
|
|
|
minversion = 2.4.0
|
2022-06-25 16:15:30 -05:00
|
|
|
envlist = docs,flake8,mypy,twine,py{36,37,38,39,310},du{14,15,16,17,18,19}
|
2022-04-16 15:38:39 -05:00
|
|
|
isolated_build = True
|
2010-07-23 04:37:44 -05:00
|
|
|
|
|
|
|
[testenv]
|
2018-01-05 07:25:34 -06:00
|
|
|
usedevelop = True
|
2017-12-19 09:55:10 -06:00
|
|
|
passenv =
|
2020-03-03 16:09:13 -06:00
|
|
|
https_proxy
|
|
|
|
http_proxy
|
|
|
|
no_proxy
|
2021-08-26 12:35:16 -05:00
|
|
|
COLORTERM
|
2020-03-03 16:09:13 -06:00
|
|
|
PERL
|
|
|
|
PERL5LIB
|
|
|
|
PYTEST_ADDOPTS
|
|
|
|
EPUBCHECK_PATH
|
|
|
|
TERM
|
2017-12-19 09:55:10 -06:00
|
|
|
description =
|
2021-10-06 12:34:44 -05:00
|
|
|
py{36,37,38,39,310}: Run unit tests against {envname}.
|
2022-06-25 16:15:30 -05:00
|
|
|
du{14,15,16,17,18,19}: Run unit tests with the given version of docutils.
|
2017-10-10 08:10:11 -05:00
|
|
|
deps =
|
2021-04-10 11:48:18 -05:00
|
|
|
du14: docutils==0.14.*
|
|
|
|
du15: docutils==0.15.*
|
|
|
|
du16: docutils==0.16.*
|
|
|
|
du17: docutils==0.17.*
|
2022-02-05 08:57:09 -06:00
|
|
|
du18: docutils==0.18.*
|
2022-06-25 16:15:30 -05:00
|
|
|
du19: docutils==0.19.*
|
2018-11-11 11:33:17 -06:00
|
|
|
extras =
|
|
|
|
test
|
2012-05-01 01:21:12 -05:00
|
|
|
setenv =
|
2022-01-02 00:03:20 -06:00
|
|
|
PYTHONWARNINGS = all
|
2020-11-04 10:00:54 -06:00
|
|
|
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
|
2010-07-23 05:16:17 -05:00
|
|
|
commands=
|
2022-04-16 13:13:34 -05:00
|
|
|
python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}
|
2010-07-23 05:16:17 -05:00
|
|
|
|
2021-10-03 04:31:32 -05:00
|
|
|
[testenv:du-latest]
|
|
|
|
commands =
|
2022-04-16 15:38:39 -05:00
|
|
|
python -m pip install "git+https://repo.or.cz/docutils.git#subdirectory=docutils" --no-warn-conflicts
|
2021-10-03 04:31:32 -05:00
|
|
|
{[testenv]commands}
|
|
|
|
|
2015-03-07 00:45:43 -06:00
|
|
|
[testenv:flake8]
|
2018-06-20 03:53:29 -05:00
|
|
|
basepython = python3
|
2017-12-19 09:55:10 -06:00
|
|
|
description =
|
|
|
|
Run style checks.
|
2020-02-10 16:25:54 -06:00
|
|
|
whitelist_externals =
|
|
|
|
flake8
|
2020-01-22 09:42:59 -06:00
|
|
|
extras =
|
|
|
|
lint
|
2017-12-19 09:55:10 -06:00
|
|
|
commands =
|
2020-02-10 16:25:54 -06:00
|
|
|
flake8 {posargs}
|
2015-11-09 20:40:48 -06:00
|
|
|
|
2020-11-11 05:00:27 -06:00
|
|
|
[testenv:isort]
|
|
|
|
basepython = python3
|
|
|
|
description =
|
|
|
|
Run import sorting checks.
|
|
|
|
whitelist_externals =
|
|
|
|
isort
|
|
|
|
extras =
|
|
|
|
lint
|
|
|
|
commands =
|
|
|
|
isort --check-only --diff .
|
|
|
|
|
2017-02-28 11:31:31 -06:00
|
|
|
[testenv:mypy]
|
2018-06-20 03:53:29 -05:00
|
|
|
basepython = python3
|
2017-12-19 09:55:10 -06:00
|
|
|
description =
|
|
|
|
Run type checks.
|
2020-01-22 09:42:59 -06:00
|
|
|
extras =
|
|
|
|
lint
|
2017-02-28 11:31:31 -06:00
|
|
|
commands=
|
|
|
|
mypy sphinx/
|
|
|
|
|
2017-02-24 12:25:51 -06:00
|
|
|
[testenv:docs]
|
2018-06-20 03:53:29 -05:00
|
|
|
basepython = python3
|
2017-12-19 09:55:10 -06:00
|
|
|
description =
|
|
|
|
Build documentation.
|
2019-05-03 22:42:17 -05:00
|
|
|
extras =
|
|
|
|
docs
|
2017-12-19 09:55:10 -06:00
|
|
|
commands =
|
2022-07-10 16:48:15 -05:00
|
|
|
python -X dev -X warn_default_encoding -m sphinx -M html ./doc ./build/sphinx -W --keep-going
|
2018-01-19 07:55:17 -06:00
|
|
|
|
2019-05-12 03:57:25 -05:00
|
|
|
[testenv:docslint]
|
|
|
|
basepython = python3
|
|
|
|
description =
|
|
|
|
Lint documentation.
|
|
|
|
extras =
|
2022-06-16 13:32:09 -05:00
|
|
|
lint
|
2019-05-12 03:57:25 -05:00
|
|
|
commands =
|
2022-06-19 17:29:00 -05:00
|
|
|
sphinx-lint --enable line-too-long --max-line-length 85 CHANGES CONTRIBUTING.rst README.rst doc/
|
2019-05-12 03:57:25 -05:00
|
|
|
|
2022-07-18 16:48:28 -05:00
|
|
|
[testenv:docs-live]
|
|
|
|
basepython = python3
|
|
|
|
description =
|
|
|
|
Build documentation.
|
|
|
|
extras =
|
|
|
|
docs
|
2022-04-16 15:38:39 -05:00
|
|
|
deps =
|
2022-07-18 16:48:28 -05:00
|
|
|
sphinx-autobuild
|
|
|
|
commands =
|
|
|
|
sphinx-autobuild ./doc ./build/sphinx/
|
|
|
|
|
2020-06-13 23:38:55 -05:00
|
|
|
[testenv:twine]
|
|
|
|
basepython = python3
|
|
|
|
description =
|
|
|
|
Lint package.
|
|
|
|
deps =
|
|
|
|
twine
|
2022-04-16 15:38:39 -05:00
|
|
|
build
|
2020-06-13 23:38:55 -05:00
|
|
|
commands =
|
2022-04-16 15:38:39 -05:00
|
|
|
python -m build .
|
2020-06-13 23:38:55 -05:00
|
|
|
twine check dist/*
|
|
|
|
|
2018-01-19 07:55:17 -06:00
|
|
|
[testenv:bindep]
|
|
|
|
description =
|
|
|
|
Install binary dependencies.
|
|
|
|
deps =
|
|
|
|
bindep
|
|
|
|
commands =
|
|
|
|
bindep test
|