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