From 4ddc705d209e0253c4dd45d0341a0450b2d2e446 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Mon, 25 Jun 2018 17:00:40 +0530 Subject: [PATCH] Simplify linter configuration to be consistent --- setup.cfg | 12 +++++++++--- tox.ini | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index 66c036df6..d811e7989 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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] diff --git a/tox.ini b/tox.ini index 866db977f..46f0fb3e0 100644 --- a/tox.ini +++ b/tox.ini @@ -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