mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-05 11:31:23 +08:00
Configure black line length from pyproject.toml so text editors respect it
This commit is contained in:
@@ -49,6 +49,9 @@ tox-poetry = "^0.4.1"
|
|||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
mcstatus = 'mcstatus.scripts.mcstatus:cli'
|
mcstatus = 'mcstatus.scripts.mcstatus:cli'
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
line-length = 127
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -12,11 +12,11 @@ commands =
|
|||||||
|
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
commands =
|
commands =
|
||||||
black -l 127 ./mcstatus
|
black ./mcstatus
|
||||||
|
|
||||||
[testenv:format-check]
|
[testenv:format-check]
|
||||||
commands =
|
commands =
|
||||||
black --check -l 127 ./mcstatus
|
black --check ./mcstatus
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
platform = linux|darwin
|
platform = linux|darwin
|
||||||
|
|||||||
Reference in New Issue
Block a user