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

View File

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