upgrade black and run via pre-commit

This commit is contained in:
Anthony Sottile 2020-08-27 15:30:14 -07:00
parent e8afdffc8a
commit f0e1324d6d
4 changed files with 13 additions and 14 deletions

11
tox.ini
View file

@ -32,15 +32,6 @@ commands =
flake8 --version
flake8 src/flake8/ tests/ setup.py
# Autoformatter
[testenv:black]
basepython = python3
skip_install = true
deps =
black>=19.3b0
commands =
black --line-length 78 src/
# Linters
[testenv:flake8]
basepython = python3
@ -93,14 +84,12 @@ commands =
basepython = python3
skip_install = true
deps =
{[testenv:black]deps}
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:doc8]deps}
{[testenv:readme]deps}
{[testenv:bandit]deps}
commands =
{[testenv:black]commands}
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:doc8]commands}