1
1
Fork 0
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:
Pradyun Gedam 2019-09-24 16:52:47 +05:30
parent d0df9d375f
commit 7b005c2d7d
No known key found for this signature in database
GPG key ID: DA17C4B29CB32E4B
2 changed files with 2 additions and 9 deletions

View file

@ -1,2 +0,0 @@
flake8 == 3.7.6
isort == 4.3.4

View file

@ -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