Simplify linter configuration to be consistent

This commit is contained in:
Pradyun Gedam 2018-06-25 17:00:40 +05:30
parent 9ab837e30d
commit 4ddc705d20
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,9 @@
[isort]
skip =
_vendor
__main__.py
.tox,
.scratch,
_vendor,
data
multi_line_output = 5
known_third_party =
pip._vendor
@ -12,7 +14,11 @@ default_section = THIRDPARTY
include_trailing_comma = true
[flake8]
exclude = .tox,.idea,.scratch,*.egg,build,_vendor,data
exclude =
.tox,
.scratch,
_vendor,
data
select = E,W,F
[mypy]

View File

@ -36,8 +36,8 @@ commands =
[lint]
deps = -r{toxinidir}/tools/lint-requirements.txt
commands =
flake8 .
isort --recursive --check-only --diff src/pip tests
flake8
isort --check-only --diff
[testenv:lint-py2]
basepython = python2