summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 9 insertions, 6 deletions
diff --git a/tox.ini b/tox.ini
index fea21e1a9..54af28366 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,7 +18,7 @@ description =
du{12,13,14}: Run unit tests with the given version of docutils.
deps =
coverage < 5.0 # refs: https://github.com/sphinx-doc/sphinx/pull/6924
- git+https://github.com/html5lib/html5lib-python ; python_version >= "3.9" # refs: https://github.com/html5lib/html5lib-python/issues/419
+ git+https://github.com/html5lib/html5lib-python # refs: https://github.com/html5lib/html5lib-python/issues/419
du12: docutils==0.12
du13: docutils==0.13.1
du14: docutils==0.14
@@ -27,7 +27,7 @@ deps =
extras =
test
setenv =
- 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
+ PYTHONWARNINGS = all,ignore::ImportWarning:importlib._bootstrap_external,ignore::DeprecationWarning:site,ignore::DeprecationWarning:distutils
commands=
pytest --durations 25 {posargs}
@@ -35,8 +35,12 @@ commands=
basepython = python3
description =
Run style checks.
-commands =
+whitelist_externals =
flake8
+extras =
+ lint
+commands =
+ flake8 {posargs}
[testenv:pylint]
basepython = python3
@@ -62,9 +66,8 @@ commands =
basepython = python3
description =
Run type checks.
-deps =
- mypy
- docutils-stubs
+extras =
+ lint
commands=
mypy sphinx/