Skip to content

Commit

Permalink
Fix line length & don't flake8 docs in python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Jul 18, 2019
1 parent c020369 commit 8f45aee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/html/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@
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:]
Expand Down
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f45aee

Please sign in to comment.