adding black to tox and defining line length on pyproject.toml

This commit is contained in:
Emmanuel Rondan 2022-12-22 16:08:37 -03:00
parent 1a3db81492
commit 09dc4cf308
2 changed files with 10 additions and 1 deletions

2
pyproject.toml Normal file
View File

@ -0,0 +1,2 @@
[tool.black]
line-length = 119

View File

@ -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 .}