mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
upgrade black and run via pre-commit
This commit is contained in:
parent
e8afdffc8a
commit
f0e1324d6d
4 changed files with 13 additions and 14 deletions
11
tox.ini
11
tox.ini
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue