From 8f45aee97a6786d02c1dd47d1380f6461a464e1b Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Thu, 18 Jul 2019 12:38:39 +0200 Subject: [PATCH] Fix line length & don't flake8 docs in python 2 --- docs/html/conf.py | 4 +++- tox.ini | 12 +++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/html/conf.py b/docs/html/conf.py index 99386026a..55eb722d5 100644 --- a/docs/html/conf.py +++ b/docs/html/conf.py @@ -278,7 +278,9 @@ man_pages = [ man_dir = os.path.join(docs_dir, 'man/') raw_subcommands = glob.glob(os.path.join(man_dir, 'commands/*.rst')) if not raw_subcommands: - raise FileNotFoundError('The individual subcommand manpages could not be found!') + raise FileNotFoundError( + 'The individual subcommand manpages could not be found!' + ) for fname in raw_subcommands: fname_base = fname[len(man_dir):-4] outname = 'pip-' + fname_base[9:] diff --git a/tox.ini b/tox.ini index 402e96bad..512bad52d 100644 --- a/tox.ini +++ b/tox.ini @@ -51,23 +51,25 @@ commands = [lint] deps = -r{toxinidir}/tools/lint-requirements.txt -commands = - flake8 - isort --check-only --diff [testenv:lint-py2] skip_install = True basepython = python2 deps = {[lint]deps} commands_pre = -commands = {[lint]commands} +# No need to flake8 docs, tools & tasks in py2 +commands = + flake8 src tests + isort --check-only --diff [testenv:lint-py3] skip_install = True basepython = python3 deps = {[lint]deps} commands_pre = -commands = {[lint]commands} +commands = + flake8 + isort --check-only --diff [testenv:mypy] skip_install = True