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