Configure black line length from pyproject.toml so text editors respect it

This commit is contained in:
Kevin Tindall
2022-01-02 22:18:43 -06:00
parent 7adb6e87f6
commit 86bd6b6d9e
2 changed files with 5 additions and 2 deletions

View File

@@ -49,6 +49,9 @@ tox-poetry = "^0.4.1"
[tool.poetry.scripts]
mcstatus = 'mcstatus.scripts.mcstatus:cli'
[tool.black]
line-length = 127
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

View File

@@ -12,11 +12,11 @@ commands =
[testenv:format]
commands =
black -l 127 ./mcstatus
black ./mcstatus
[testenv:format-check]
commands =
black --check -l 127 ./mcstatus
black --check ./mcstatus
[testenv:lint]
platform = linux|darwin