mirror of https://github.com/pypa/pip
Fix line length & don't flake8 docs in python 2
This commit is contained in:
parent
c0203692fa
commit
8f45aee97a
|
@ -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:]
|
||||
|
|
12
tox.ini
12
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
|
||||
|
|
Loading…
Reference in New Issue