mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 03:51:23 +08:00
Cleanup tox.ini a bit
This commit is contained in:
17
tox.ini
17
tox.ini
@@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
envlist =
|
envlist =
|
||||||
check,py{37,38,39},coverage
|
format-check,lint,py{37,38,39},coverage
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
@@ -10,10 +10,17 @@ setenv =
|
|||||||
commands =
|
commands =
|
||||||
pytest {posargs}
|
pytest {posargs}
|
||||||
|
|
||||||
[testenv:check]
|
[testenv:format]
|
||||||
platform = linux2|darwin
|
commands =
|
||||||
|
black -l 127 ./mcstatus
|
||||||
|
|
||||||
|
[testenv:format-check]
|
||||||
commands =
|
commands =
|
||||||
black --check -l 127 ./mcstatus
|
black --check -l 127 ./mcstatus
|
||||||
|
|
||||||
|
[testenv:lint]
|
||||||
|
platform = linux|darwin
|
||||||
|
commands =
|
||||||
pytype ./mcstatus
|
pytype ./mcstatus
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
@@ -25,7 +32,3 @@ commands =
|
|||||||
coverage combine
|
coverage combine
|
||||||
coverage report --show-missing --fail-under=80
|
coverage report --show-missing --fail-under=80
|
||||||
|
|
||||||
[testenv:format]
|
|
||||||
depends = py39
|
|
||||||
commands =
|
|
||||||
black -l 127 ./mcstatus
|
|
||||||
|
|||||||
Reference in New Issue
Block a user