Skip to content

Commit 8f45aee

Browse files
committed
Fix line length & don't flake8 docs in python 2
1 parent c020369 commit 8f45aee

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/html/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@
278278
man_dir = os.path.join(docs_dir, 'man/')
279279
raw_subcommands = glob.glob(os.path.join(man_dir, 'commands/*.rst'))
280280
if not raw_subcommands:
281-
raise FileNotFoundError('The individual subcommand manpages could not be found!')
281+
raise FileNotFoundError(
282+
'The individual subcommand manpages could not be found!'
283+
)
282284
for fname in raw_subcommands:
283285
fname_base = fname[len(man_dir):-4]
284286
outname = 'pip-' + fname_base[9:]

tox.ini

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,25 @@ commands =
5151

5252
[lint]
5353
deps = -r{toxinidir}/tools/lint-requirements.txt
54-
commands =
55-
flake8
56-
isort --check-only --diff
5754

5855
[testenv:lint-py2]
5956
skip_install = True
6057
basepython = python2
6158
deps = {[lint]deps}
6259
commands_pre =
63-
commands = {[lint]commands}
60+
# No need to flake8 docs, tools & tasks in py2
61+
commands =
62+
flake8 src tests
63+
isort --check-only --diff
6464

6565
[testenv:lint-py3]
6666
skip_install = True
6767
basepython = python3
6868
deps = {[lint]deps}
6969
commands_pre =
70-
commands = {[lint]commands}
70+
commands =
71+
flake8
72+
isort --check-only --diff
7173

7274
[testenv:mypy]
7375
skip_install = True

0 commit comments

Comments
 (0)