1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
[tox]
envlist = flake8,mypy,py37,py38,py39,py310,py311,pypy3
isolated_build = True
[testenv]
deps =
pytest
pytest-timeout
coverage
setenv =
PYTHONDEVMODE = 1
PYTHONWARNDEFAULTENCODING = 1
commands =
coverage run --branch --source=xopen,tests -m pytest -v --doctest-modules tests
coverage report
coverage xml
coverage html
[testenv:zstd]
deps =
{[testenv]deps}
zstandard
[testenv:black]
basepython = python3.7
deps = black==22.3.0
skip_install = true
commands = black --check src/ tests/
[testenv:flake8]
basepython = python3.7
deps = flake8
commands = flake8 src/ tests/
skip_install = true
[testenv:mypy]
basepython = python3.7
deps = mypy
commands = mypy src/
skip_install = true
[flake8]
max-line-length = 99
max-complexity = 10
extend_ignore = E731
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
@overload
|