Permalink
Browse files

flake8 compliance

  • Loading branch information...
jtauber committed Jul 20, 2014
1 parent 03d42a8 commit a8db1ea9a16ad140c655566d50d706a602177893
Showing with 16 additions and 18 deletions.
  1. +8 −9 docs/conf.py
  2. +6 −9 setup.py
  3. +2 −0 tox.ini
View
@@ -1,4 +1,5 @@
-import sys, os
+import os
+import sys
extensions = []
templates_path = []
@@ -11,14 +12,12 @@
pygments_style = 'sphinx'
html_theme = 'default'
htmlhelp_basename = '%sdoc' % package
-latex_documents = [
- ('index', '%s.tex' % package, u'%s Documentation' % package,
- u'Eldarion', 'manual'),
-]
-man_pages = [
- ('index', package, u'%s Documentation' % package,
- [u'Eldarion'], 1)
-]
+latex_documents = [(
+ 'index', '%s.tex' % package, u'%s Documentation' % package, u'Eldarion', 'manual'
+)]
+man_pages = [(
+ 'index', package, u'%s Documentation' % package, [u'Eldarion'], 1
+)]
sys.path.insert(0, os.pardir)
m = __import__(package)
View
@@ -30,7 +30,8 @@ def find_package_data(
exclude=standard_exclude,
exclude_directories=standard_exclude_directories,
only_in_packages=True,
- show_ignored=False):
+ show_ignored=False
+):
"""
Return a dictionary suitable for use in ``package_data``
in a distutils ``setup.py`` file.
@@ -66,8 +67,7 @@ def find_package_data(
if os.path.isdir(fn):
bad_name = False
for pattern in exclude_directories:
- if (fnmatchcase(name, pattern)
- or fn.lower() == pattern.lower()):
+ if fnmatchcase(name, pattern) or fn.lower() == pattern.lower():
bad_name = True
if show_ignored:
print >> sys.stderr, (
@@ -76,8 +76,7 @@ def find_package_data(
break
if bad_name:
continue
- if (os.path.isfile(os.path.join(fn, "__init__.py"))
- and not prefix):
+ if os.path.isfile(os.path.join(fn, "__init__.py")) and not prefix:
if not package:
new_package = name
else:
@@ -89,8 +88,7 @@ def find_package_data(
# is a file
bad_name = False
for pattern in exclude:
- if (fnmatchcase(name, pattern)
- or fn.lower() == pattern.lower()):
+ if fnmatchcase(name, pattern) or fn.lower() == pattern.lower():
bad_name = True
if show_ignored:
print >> sys.stderr, (
@@ -99,7 +97,7 @@ def find_package_data(
break
if bad_name:
continue
- out.setdefault(package, []).append(prefix+name)
+ out.setdefault(package, []).append(prefix + name)
return out
@@ -134,4 +132,3 @@ def find_package_data(
],
zip_safe=False
)
-
View
@@ -0,0 +1,2 @@
+[flake8]
+ignore = E265,E501

0 comments on commit a8db1ea

Please sign in to comment.