You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parver/tox.ini

57 lines
1.0 KiB

[tox]
minversion = 3.3
envlist = py27,py34,py35,py36,py37,py38,py39,py310,pep8,py3pep8,docs
isolated_build = True
[testenv]
extras =
test
deps =
coverage[toml]
commands =
# Use parallel mode to fix paths. See tool.coverage.paths in pyproject.toml
coverage run --parallel-mode -m pytest {posargs}
coverage combine
coverage report -m
[testenv:pep8]
extras =
pep8test
commands =
flake8 .
[testenv:py3pep8]
basepython = python3.10
extras =
pep8test
commands =
flake8 .
[testenv:docs]
basepython = python3.10
extras =
docstest
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
doc8 docs/
[flake8]
# Should aim for 80, but don't warn until 90.
max-line-length = 90
[doc8]
ignore-path = docs/_build/
[pytest]
addopts = -r s
[gh-actions]
python =
2.7: py27, pep8
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310, py3pep8, docs