changeset 7826:f73a1103ccdc

flake8: fix E125 continuation line with same indent as next logical line
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 04 Aug 2019 01:37:08 +0200
parents fcfc62767107
children ff764c0e7792
files kallithea/controllers/api/api.py kallithea/controllers/changeset.py kallithea/lib/annotate.py kallithea/lib/middleware/simplegit.py kallithea/lib/page.py kallithea/lib/utils2.py kallithea/lib/vcs/backends/git/inmemory.py kallithea/lib/vcs/utils/annotate.py
diffstat 8 files changed, 13 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/api/api.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/controllers/api/api.py	Sun Aug 04 01:37:08 2019 +0200
@@ -1321,7 +1321,7 @@
 
             if (name != repo.repo_name and
                 not HasPermissionAny('hg.create.repository')()
-                ):
+            ):
                 raise JSONRPCError('no permission to create (or move) repositories')
 
             if not isinstance(owner, Optional):
--- a/kallithea/controllers/changeset.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/controllers/changeset.py	Sun Aug 04 01:37:08 2019 +0200
@@ -206,7 +206,7 @@
             h.HasPermissionAny('hg.admin')() or
             h.HasRepoPermissionLevel('admin')(pull_request.org_repo.repo_name) or
             h.HasRepoPermissionLevel('admin')(pull_request.other_repo.repo_name)
-            ) and not pull_request.is_closed():
+        ) and not pull_request.is_closed():
             PullRequestModel().delete(pull_request)
             Session().commit()
             h.flash(_('Successfully deleted pull request %s') % pull_request_id,
--- a/kallithea/lib/annotate.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/annotate.py	Sun Aug 04 01:37:08 2019 +0200
@@ -90,7 +90,8 @@
         self.order = order or ('ls', 'annotate', 'code')
         headers = options.pop('headers', None)
         if headers and not ('ls' in headers and 'annotate' in headers and
-            'code' in headers):
+            'code' in headers
+        ):
             raise ValueError("If headers option dict is specified it must "
                 "all 'ls', 'annotate' and 'code' keys")
         self.headers = headers
--- a/kallithea/lib/middleware/simplegit.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/middleware/simplegit.py	Sun Aug 04 01:37:08 2019 +0200
@@ -86,7 +86,7 @@
         def wrapper_app(environ, start_response):
             if (parsed_request.cmd == 'info/refs' and
                 parsed_request.service == 'git-upload-pack'
-                ):
+            ):
                 baseui = make_ui()
                 repo = Repository.get_by_repo_name(parsed_request.repo_name)
                 scm_repo = repo.scm_instance
--- a/kallithea/lib/page.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/page.py	Sun Aug 04 01:37:08 2019 +0200
@@ -126,7 +126,8 @@
         symbol_previous='<', symbol_next='>',
         link_attr=None,
         curpage_attr=None,
-        dotdot_attr=None, **kwargs):
+        dotdot_attr=None, **kwargs
+    ):
         self.curpage_attr = curpage_attr or {'class': 'active'}
         self.separator = separator
         self.pager_kwargs = kwargs
--- a/kallithea/lib/utils2.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/utils2.py	Sun Aug 04 01:37:08 2019 +0200
@@ -304,7 +304,8 @@
     month_lengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
     if deltas['day'] < 0:
         if prevdate.month == 2 and (prevdate.year % 4 == 0 and
-            (prevdate.year % 100 != 0 or prevdate.year % 400 == 0)):
+            (prevdate.year % 100 != 0 or prevdate.year % 400 == 0)
+        ):
             deltas['day'] += 29
         else:
             deltas['day'] += month_lengths[prevdate.month - 1]
--- a/kallithea/lib/vcs/backends/git/inmemory.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/vcs/backends/git/inmemory.py	Sun Aug 04 01:37:08 2019 +0200
@@ -95,7 +95,8 @@
             new_trees.append(parent)
             # Update ancestors
             for parent, tree, path in reversed([(a[1], b[1], b[0]) for a, b in
-                zip(ancestors, ancestors[1:])]):
+                zip(ancestors, ancestors[1:])]
+            ):
                 parent[path] = stat.S_IFDIR, tree.id
                 object_store.add_object(tree)
 
--- a/kallithea/lib/vcs/utils/annotate.py	Sun Aug 04 01:29:11 2019 +0200
+++ b/kallithea/lib/vcs/utils/annotate.py	Sun Aug 04 01:37:08 2019 +0200
@@ -62,7 +62,8 @@
         self.order = order or ('ls', 'annotate', 'code')
         headers = options.pop('headers', None)
         if headers and not ('ls' in headers and 'annotate' in headers and
-            'code' in headers):
+            'code' in headers
+        ):
             raise ValueError("If headers option dict is specified it must "
                 "all 'ls', 'annotate' and 'code' keys")
         self.headers = headers