From 58dd5bddaf016a16853f0064edec357864fa7e4a Mon Sep 17 00:00:00 2001 From: Andrei Pashkin Date: Sun, 13 Sep 2020 12:57:52 +0300 Subject: [PATCH] Introduce Black - formatting tool. --- pyproject.toml | 2 ++ tox.ini | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a8f43fe --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 79 diff --git a/tox.ini b/tox.ini index ff4322e..b9f902f 100644 --- a/tox.ini +++ b/tox.ini @@ -45,6 +45,7 @@ deps = pdbpp sphinx>=3,<4 dunamai < 2 + black [testenv:write_version] skip_install = true @@ -60,3 +61,10 @@ whitelist_externals = make commands = make html deps = {[testenv:dev]deps} + +[testenv:black] +skip_install = true +commands = + black {posargs} {toxinidir}/src/py {toxinidir}/scripts {toxinidir}/setup.py +deps = + {[testenv:dev]deps}