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