File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 278
278
man_dir = os .path .join (docs_dir , 'man/' )
279
279
raw_subcommands = glob .glob (os .path .join (man_dir , 'commands/*.rst' ))
280
280
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
+ )
282
284
for fname in raw_subcommands :
283
285
fname_base = fname [len (man_dir ):- 4 ]
284
286
outname = 'pip-' + fname_base [9 :]
Original file line number Diff line number Diff line change @@ -51,23 +51,25 @@ commands =
51
51
52
52
[lint]
53
53
deps = -r{toxinidir}/tools/lint-requirements.txt
54
- commands =
55
- flake8
56
- isort --check-only --diff
57
54
58
55
[testenv:lint-py2]
59
56
skip_install = True
60
57
basepython = python2
61
58
deps = {[lint]deps}
62
59
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
64
64
65
65
[testenv:lint-py3]
66
66
skip_install = True
67
67
basepython = python3
68
68
deps = {[lint]deps}
69
69
commands_pre =
70
- commands = {[lint]commands}
70
+ commands =
71
+ flake8
72
+ isort --check-only --diff
71
73
72
74
[testenv:mypy]
73
75
skip_install = True
You can’t perform that action at this time.
0 commit comments