From 86bd6b6d9e30e723ddde0cf4f94b2e2e5115a93f Mon Sep 17 00:00:00 2001 From: Kevin Tindall Date: Sun, 2 Jan 2022 22:18:43 -0600 Subject: [PATCH] Configure black line length from pyproject.toml so text editors respect it --- pyproject.toml | 3 +++ tox.ini | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4144553..8060c3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/tox.ini b/tox.ini index 48dcd5d..57ba735 100644 --- a/tox.ini +++ b/tox.ini @@ -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