mirror of https://github.com/pypa/pip
Simplify linter configuration to be consistent
This commit is contained in:
parent
9ab837e30d
commit
4ddc705d20
12
setup.cfg
12
setup.cfg
|
@ -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]
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue