enables flake8 E501 line too long, E502 the backslash is redundant between brackets

This commit is contained in:
shimizukawa
2015-03-07 20:47:03 +09:00
parent 4fa027352f
commit 3b6524067f
4 changed files with 8 additions and 8 deletions

View File

@@ -25,5 +25,5 @@ universal = 1
[flake8]
max-line-length=90
ignore=W503,E111,E114,E115,E116,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E202,E203,E205,E221,E222,E225,E226,E231,E241,E251,E261,E262,E265,E266,E271,E301,E302,E303,E401,E402,E501,E502,E625,E701,E703,E704,E711,E712,E713,E721,E731,E901,E902,F401,F402,F403,F812,F821,F841
exclude=utils/*,tests/*,build/*
ignore=W503,E111,E114,E115,E116,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E202,E203,E205,E221,E222,E225,E226,E231,E241,E251,E261,E262,E265,E266,E271,E301,E302,E303,E401,E402,E625,E701,E703,E704,E711,E712,E713,E721,E731,E901,E902,F401,F402,F403,F812,F821,F841
exclude=utils/*,tests/*,build/*,sphinx/search/*

View File

@@ -634,7 +634,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
# write the project file
f = codecs.open(path.join(outdir, outname), 'w', 'utf-8')
try:
f.write(content_tmpl % \
f.write(content_tmpl %
self.content_metadata(projectfiles, spine, guide))
finally:
f.close()
@@ -743,9 +743,9 @@ class EpubBuilder(StandaloneHTMLBuilder):
self.info('writing %s file...' % outname)
projectfiles = ['META-INF/container.xml', 'content.opf', 'toc.ncx'] \
+ self.files
epub = zipfile.ZipFile(path.join(outdir, outname), 'w', \
epub = zipfile.ZipFile(path.join(outdir, outname), 'w',
zipfile.ZIP_DEFLATED)
epub.write(path.join(outdir, 'mimetype'), 'mimetype', \
epub.write(path.join(outdir, 'mimetype'), 'mimetype',
zipfile.ZIP_STORED)
for file in projectfiles:
fp = path.join(outdir, file)

View File

@@ -140,8 +140,8 @@ class GraphvizSimple(Directive):
def render_dot(self, code, options, format, prefix='graphviz'):
"""Render graphviz code into a PNG or PDF output file."""
hashkey = (code + str(options) + \
str(self.builder.config.graphviz_dot) + \
hashkey = (code + str(options) +
str(self.builder.config.graphviz_dot) +
str(self.builder.config.graphviz_dot_args)
).encode('utf-8')

View File

@@ -280,7 +280,7 @@ class PorterStemmer(object):
elif self.ends("ent"): pass
else: return
elif self.b[self.k - 1] == 'o':
if self.ends("ion") and (self.b[self.j] == 's' \
if self.ends("ion") and (self.b[self.j] == 's'
or self.b[self.j] == 't'): pass
elif self.ends("ou"): pass
# takes care of -ous