mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Switch to using pre-commit in tox lint
This commit is contained in:
parent
d0df9d375f
commit
7b005c2d7d
2 changed files with 2 additions and 9 deletions
|
@ -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
|
check-manifest
|
||||||
python setup.py check -m -r -s
|
python setup.py check -m -r -s
|
||||||
|
|
||||||
[lint]
|
|
||||||
deps = -r{toxinidir}/tools/requirements/lint.txt
|
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
basepython = python3
|
|
||||||
deps = {[lint]deps}
|
|
||||||
commands_pre =
|
commands_pre =
|
||||||
|
deps = pre-commit
|
||||||
commands =
|
commands =
|
||||||
flake8
|
pre-commit run --all-files --show-diff-on-failure
|
||||||
isort --check-only --diff
|
|
||||||
|
|
Loading…
Reference in a new issue