From 09dc4cf308f80c19d33e6f70d4e449eb85e2af29 Mon Sep 17 00:00:00 2001 From: Emmanuel Rondan Date: Thu, 22 Dec 2022 16:08:37 -0300 Subject: [PATCH] adding black to tox and defining line length on pyproject.toml --- pyproject.toml | 2 ++ tox.ini | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..f5da62525 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 119 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 4d0f0291b..913b8045e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = security,flake8,py +envlist = security,flake8,py,black minversion = 1.7.0 [testenv] @@ -197,3 +197,10 @@ deps = {[docs]deps} setenv = {[docs]setenv} commands = sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck + +[testenv:black] +deps = + black==22.10.0 +commands = + black {posargs:--check .} + \ No newline at end of file