diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -5,12 +5,19 @@ envlist = docs,flake8,mypy,coverage,py{35,36,37,38,39},du{12,13,14,15} [testenv] usedevelop = True passenv = - https_proxy http_proxy no_proxy PERL PERL5LIB PYTEST_ADDOPTS EPUBCHECK_PATH + https_proxy + http_proxy + no_proxy + PERL + PERL5LIB + PYTEST_ADDOPTS + EPUBCHECK_PATH + TERM description = py{35,36,37,38,39}: Run unit tests against {envname}. du{12,13,14}: Run unit tests with the given version of docutils. deps = - 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 @@ -19,7 +26,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} @@ -27,8 +34,12 @@ commands= basepython = python3 description = Run style checks. -commands = +whitelist_externals = flake8 +extras = + lint +commands = + flake8 {posargs} [testenv:pylint] basepython = python3 @@ -54,9 +65,8 @@ commands = basepython = python3 description = Run type checks. -deps = - mypy - docutils-stubs +extras = + lint commands= mypy sphinx/ |