[PATCH 32 of 52 Narval cube] [autopep8] E301 - Add missing blank line

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460431 0
#      Sun Mar 29 05:40:31 2020 +0000
# Node ID d5d0a2b27b8b364e2ba0086220faec09309560df
# Parent  ae385effadbe0979efc038c31704feaba67d60ad
[autopep8] E301 - Add missing blank line

diff --git a/cubicweb_narval/hooks.py b/cubicweb_narval/hooks.py
--- a/cubicweb_narval/hooks.py
+++ b/cubicweb_narval/hooks.py
@@ -30,6 +30,7 @@
     """
     __regid__ = 'narval.startup'
     events = ('server_startup',)
+
     def __call__(self):
         cleanupdelay = self.repo.config['plan-cleanup-delay']
         if not cleanupdelay:
diff --git a/cubicweb_narval/migration/4.0.0_Any.py b/cubicweb_narval/migration/4.0.0_Any.py
--- a/cubicweb_narval/migration/4.0.0_Any.py
+++ b/cubicweb_narval/migration/4.0.0_Any.py
@@ -104,8 +104,10 @@
     # first create the File entities with
     from cubicweb.predicates import is_instance
     from cubicweb.entities.adapters import IFTIndexableAdapter
+
     class NoIndexFileIndexableAdapter(IFTIndexableAdapter):
         __select__ = is_instance('File')
+
         def get_words(self):
             return {}
     obj = NoIndexFileIndexableAdapter
diff --git a/cubicweb_narval/views/plan.py b/cubicweb_narval/views/plan.py
--- a/cubicweb_narval/views/plan.py
+++ b/cubicweb_narval/views/plan.py
@@ -66,6 +66,7 @@
 
 class PlanBreadCrumbTextView(ibreadcrumbs.BreadCrumbTextView):
     __select__ = is_instance('Plan')
+
     def cell_call(self, row, col):
         entity = self.cw_rset.get_entity(row, col)
         starttime = self._cw.format_date(entity.starttime, time=True)
diff --git a/cubicweb_narval/views/startplan.py b/cubicweb_narval/views/startplan.py
--- a/cubicweb_narval/views/startplan.py
+++ b/cubicweb_narval/views/startplan.py
@@ -52,6 +52,7 @@
     __select__ = (component.EntityCtxComponent.__select__
                   & StartPlanForm.__select__)
     context = 'navcontentbottom'
+
     def render(self, w):
         w(u'<h2>%s</h2>' % self._cw._('start plan'))
         entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
diff --git a/test/test_functional.py b/test/test_functional.py
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -31,6 +31,7 @@
 
 class NarvalFunctionalTC(NarvalBaseTC):
     """Test for no operation recipe"""
+
     def test_noop(self):
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'functest.noop',
diff --git a/test/unittest_views.py b/test/unittest_views.py
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -30,6 +30,7 @@
 
 class NarvalViewsTC(NarvalBaseTC):
     """Test for no operation recipe"""
+
     def test_plan_json(self):
         with self.admin_access.web_request() as req:
             recipe = req.create_entity('Recipe', name=u'test.pass', script=u'pass')




More information about the cubicweb-devel mailing list