mirror of https://github.com/scrapy/scrapy.git
adding black to tox and defining line length on pyproject.toml
This commit is contained in:
parent
1a3db81492
commit
09dc4cf308
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tool.black]
|
||||||
|
line-length = 119
|
||||||
9
tox.ini
9
tox.ini
|
|
@ -4,7 +4,7 @@
|
||||||
# and then run "tox" from this directory.
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = security,flake8,py
|
envlist = security,flake8,py,black
|
||||||
minversion = 1.7.0
|
minversion = 1.7.0
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
|
@ -197,3 +197,10 @@ deps = {[docs]deps}
|
||||||
setenv = {[docs]setenv}
|
setenv = {[docs]setenv}
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
|
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
|
||||||
|
|
||||||
|
[testenv:black]
|
||||||
|
deps =
|
||||||
|
black==22.10.0
|
||||||
|
commands =
|
||||||
|
black {posargs:--check .}
|
||||||
|
|
||||||
Loading…
Reference in New Issue