Skip to content

Commit

Permalink
Fix flake8 warnings
Browse files Browse the repository at this point in the history
No idea why these are acting up only now.
  • Loading branch information
fmdkdd committed Oct 29, 2018
1 parent 0a54ce1 commit 1702d2d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- mode: conf; -*-
[flake8]
# Ignore all missing docstrings for now, until we have docstrings everywhere
ignore = D100,D101,D102,D103,D105,D401
ignore = D100,D101,D102,D103,D105,D401,W503
exclude = test/resources
inline-quotes = '
18 changes: 9 additions & 9 deletions doc/elisp.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ def _add_target(self, name, sig, signode):
symbol = obarray.setdefault(name, {})
if self.cell in symbol:
self.state_machine.reporter.warning(
'duplicate description of %s %s, ' % (self.objtype, name) +
'other instance in ' +
self.env.doc2path(symbol[self.cell].docname),
'duplicate description of %s %s, ' % (self.objtype, name)
+ 'other instance in '
+ self.env.doc2path(symbol[self.cell].docname),
line=self.lineno)
symbol[self.cell] = Cell(self.objtype, self.env.docname)

Expand Down Expand Up @@ -238,9 +238,9 @@ def _add_command_target_and_index(self, name, sig, signode):
symbol = obarray.setdefault(name, {})
if 'function' in symbol:
self.state_machine.reporter.warning(
'duplicate description of %s %s, ' % (self.objtype, name) +
'other instance in ' +
self.env.doc2path(symbol['function'].docname),
'duplicate description of %s %s, ' % (self.objtype, name)
+ 'other instance in '
+ self.env.doc2path(symbol['function'].docname),
line=self.lineno)
symbol['function'] = Cell(self.objtype, self.env.docname)

Expand All @@ -260,9 +260,9 @@ def _add_binding_target_and_index(self, binding, sig, signode):
keymap = self.env.domaindata['el']['keymap']
if binding in keymap:
self.state_machine.reporter.warning(
'duplicate description of binding %s, ' % binding +
'other instance in ' +
self.env.doc2path(keymap[binding]),
'duplicate description of binding %s, ' % binding
+ 'other instance in '
+ self.env.doc2path(keymap[binding]),
line=self.lineno)
keymap[binding] = self.env.docname

Expand Down
6 changes: 3 additions & 3 deletions doc/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def parse(cls, htmlxref):
url = Template(match.group('substurl')).substitute(
substitutions)
substitutions[match.group('substname')] = url
elif (match.group('manname') and
match.group('mantype') == 'node'):
elif (match.group('manname')
and match.group('mantype') == 'node'):
url = Template(match.group('manurl')).substitute(
substitutions)
manuals[match.group('manname')] = url
Expand All @@ -137,7 +137,7 @@ def update_htmlxref(app):
try:
app.env.info_htmlxref = HTMLXRefDB.parse(
requests.get(HTMLXRefDB.XREF_URL).text)
except requests.exceptions.ConnectionError as error:
except requests.exceptions.ConnectionError:
app.warn('Failed to load xref DB. '
'Info references will not be resolved')
app.env.info_htmlxref = None
Expand Down

0 comments on commit 1702d2d

Please sign in to comment.