[PATCH 48 of 52 Narval cube] [flake8] fix E128, E127 visual indent

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:48 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585732495 0
#      Wed Apr 01 09:14:55 2020 +0000
# Node ID 8f641c3c0433e0ed2289bd7d30fdb7b78c878abc
# Parent  8fd76c276ff66f0d0edddb2b9c690ce36fec6a69
[flake8] fix E128, E127 visual indent

diff --git a/cubicweb_narval/narvalbot/__init__.py b/cubicweb_narval/narvalbot/__init__.py
--- a/cubicweb_narval/narvalbot/__init__.py
+++ b/cubicweb_narval/narvalbot/__init__.py
@@ -60,7 +60,7 @@
     if not osp.isdir(start_path):
         prefix = osp.dirname(start_path)
     while (not osp.isdir(osp.join(prefix, 'share', 'narval'))
-          or prefix.endswith('.egg')) and prefix != old_prefix:
+           or prefix.endswith('.egg')) and prefix != old_prefix:
         old_prefix = prefix
         prefix = osp.dirname(prefix)
     if osp.isdir(osp.join(prefix, 'share', 'narval')):
diff --git a/cubicweb_narval/narvalbot/server.py b/cubicweb_narval/narvalbot/server.py
--- a/cubicweb_narval/narvalbot/server.py
+++ b/cubicweb_narval/narvalbot/server.py
@@ -117,7 +117,7 @@
             if not queue:
                 # nothing to do, sleep a bit
                 delay = min(float(self.config.cnx_infos[instid].get('poll-delay', 0))
-                             for instid in self.instance_ids) or 60
+                            for instid in self.instance_ids) or 60
                 time.sleep(delay)
             self._wait_for_free_slot()
 
diff --git a/cubicweb_narval/schema.py b/cubicweb_narval/schema.py
--- a/cubicweb_narval/schema.py
+++ b/cubicweb_narval/schema.py
@@ -47,7 +47,8 @@
 
 class Plan(EntityType):
     # add permissions actually checked according to recipe
-    __permissions__ = {'read': ('managers', 'users', 'guests', 'narval'),
+    __permissions__ = {
+        'read': ('managers', 'users', 'guests', 'narval'),
         'add': ('managers', 'users', 'narval'),
         'update': ('narval',),
         'delete': ('managers',),
diff --git a/cubicweb_narval/testutils.py b/cubicweb_narval/testutils.py
--- a/cubicweb_narval/testutils.py
+++ b/cubicweb_narval/testutils.py
@@ -99,7 +99,7 @@
             fp = BytesIO(data)
             if req.status_out not in (200, 303):
                 raise urllib.error.HTTPError(url, req.status_out,
-                                        "Failed", req.headers_out, fp)
+                                             "Failed", req.headers_out, fp)
             try:
                 return load(fp)
             except:  # noqa: E722




More information about the cubicweb-devel mailing list