mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-05 19:41:24 +08:00
Move pytest options to pyproject.toml
This commit is contained in:
@@ -50,6 +50,13 @@ tox-poetry = "^0.4.1"
|
|||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
mcstatus = 'mcstatus.scripts.mcstatus:cli'
|
mcstatus = 'mcstatus.scripts.mcstatus:cli'
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
minversion = "6.0"
|
||||||
|
addopts = "--strict-markers --doctest-modules --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -vvv --no-cov-on-fail"
|
||||||
|
testpaths = [
|
||||||
|
"mcstatus/tests",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 127
|
line-length = 127
|
||||||
|
|
||||||
|
|||||||
1
tox.ini
1
tox.ini
@@ -6,7 +6,6 @@ envlist =
|
|||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
COVERAGE_FILE=.coverage.{envname}
|
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 =
|
commands =
|
||||||
pytest {posargs}
|
pytest {posargs}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user