Files
mcstatus/tox.ini
Kevin Tindall d647b4eb25 Fix some development stuff
Specify python versions, fix tox.ini for usage with poetry, disable
pytype on windows
2021-12-08 17:47:46 -06:00

31 lines
615 B
INI

[tox]
isolated_build = True
envlist =
check,py{36,37,38,39},coverage
[testenv]
setenv =
COVERAGE_FILE=.coverage.{envname}
PYTEST_ADDOPTS=--strict-markers --doctest-modules --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -v {env:PYTEST_ADDOPTS:}
commands =
pytest {posargs}
[testenv:check]
commands =
black --check -l 127 ./mcstatus
pytype ./mcstatus
[testenv:coverage]
depends =
py{36,37,38,39}
setenv =
COVERAGE_FILE=.coverage
commands =
coverage combine
coverage report --show-missing --fail-under=80
[testenv:format]
depends = py39
commands =
black -l 127 ./mcstatus