Files
mcstatus/tox.ini
Kevin Tindall 27fbe2e95d Support python 3.10
No reason to gate supporting a newer version of python because of pytype
not supporting it yet.
2022-01-02 21:58:24 -06:00

35 lines
673 B
INI

[tox]
isolated_build = True
envlist =
format-check,lint,py{37,38,39,310},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:format]
commands =
black -l 127 ./mcstatus
[testenv:format-check]
commands =
black --check -l 127 ./mcstatus
[testenv:lint]
platform = linux|darwin
commands =
pytype ./mcstatus
[testenv:coverage]
depends =
py{37,38,39,310}
setenv =
COVERAGE_FILE=.coverage
commands =
coverage combine
coverage report --show-missing --fail-under=80