From d81153b8c4b5b21f3a28d117b43df6a9cda81644 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 8 Dec 2022 21:52:03 +0100 Subject: black formatting This seems like something we should do rather earlier than later. Using black takes away the pain of manually formatting the code, adhering to the style guidelines and it takes away bikeshedding over minor things. --- tox.ini | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 9f69f7e..88bcef6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,12 @@ [flake8] max-line-length = 100 exclude = fietsboek/alembic +extend-ignore = E203 per-file-ignores = fietsboek/models/__init__.py:F401 [tox] -envlist = python,pylint,pylint-tests,flake8,mypy +envlist = python,pylint,pylint-tests,flake8,mypy,black isolated_build = true [testenv] @@ -56,3 +57,9 @@ deps = usedevelop = true commands = mypy fietsboek + +[testenv:black] +deps = black +usedevelop = true +commands = + black --check fietsboek -- cgit v1.2.3