mirror of https://github.com/pypa/pip
Switch to using pre-commit in `tox lint`
This commit is contained in:
parent
d0df9d375f
commit
7b005c2d7d
|
@ -1,2 +0,0 @@
|
|||
flake8 == 3.7.6
|
||||
isort == 4.3.4
|
9
tox.ini
9
tox.ini
|
@ -50,14 +50,9 @@ commands =
|
|||
check-manifest
|
||||
python setup.py check -m -r -s
|
||||
|
||||
[lint]
|
||||
deps = -r{toxinidir}/tools/requirements/lint.txt
|
||||
|
||||
[testenv:lint]
|
||||
skip_install = True
|
||||
basepython = python3
|
||||
deps = {[lint]deps}
|
||||
commands_pre =
|
||||
deps = pre-commit
|
||||
commands =
|
||||
flake8
|
||||
isort --check-only --diff
|
||||
pre-commit run --all-files --show-diff-on-failure
|
||||
|
|
Loading…
Reference in New Issue