[PATCH 35 of 52 Narval cube] [autopep8] E305 - Expected 2 blank lines after end of function or class

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460434 0
#      Sun Mar 29 05:40:34 2020 +0000
# Node ID b03663f558351160ac6f59127f42c0d6c1e31feb
# Parent  fb71a93d24f6d7523dc3ed5216e6c24ce593d343
[autopep8] E305 - Expected 2 blank lines after end of function or class

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
@@ -66,6 +66,7 @@
         return prefix
     return sys.prefix
 
+
 try:
     INSTALL_PREFIX = os.environ['NARVAL_INSTALL_PREFIX']
 except KeyError:
@@ -293,6 +294,7 @@
         plan = data[0]  # you get a list of plan of size 1
         return plan
 
+
 LOGGER = logging.getLogger('narval.bot')
 set_log_methods(HTTPConnectionHandler, LOGGER)
 
diff --git a/cubicweb_narval/narvalbot/engine.py b/cubicweb_narval/narvalbot/engine.py
--- a/cubicweb_narval/narvalbot/engine.py
+++ b/cubicweb_narval/narvalbot/engine.py
@@ -114,6 +114,7 @@
             narvalplan.fire_transition('fail')
             raise
 
+
 LOGGER = logging.getLogger('narval.engine')
 lext.set_log_methods(Narval, LOGGER)
 
@@ -139,5 +140,6 @@
             f.flush()
             execfile(f.name, {'plan': self})
 
+
 LOGGER = logging.getLogger('narval.engine')
 lext.set_log_methods(Plan, LOGGER)
diff --git a/cubicweb_narval/schema.py b/cubicweb_narval/schema.py
--- a/cubicweb_narval/schema.py
+++ b/cubicweb_narval/schema.py
@@ -60,6 +60,7 @@
                      __permissions__=IMMUTABLE_ATTR_PERMS)
     script = String(description=_('executed script'))
 
+
 make_workflowable(Plan, in_state_descr=_('execution status'))
 
 
@@ -88,6 +89,7 @@
     cardinality = '1*'
     composite = 'object'
 
+
 # add permissions to File objects
 File.__permissions__ = File.__permissions__.copy()
 for perm_type in ['read', 'add', 'update']:
diff --git a/cubicweb_narval/site_cubicweb.py b/cubicweb_narval/site_cubicweb.py
--- a/cubicweb_narval/site_cubicweb.py
+++ b/cubicweb_narval/site_cubicweb.py
@@ -18,6 +18,7 @@
     supported_backends = ('postgres', 'sqlite',)
     rtype = 'Boolean'
 
+
 try:
     register_function(is_null)
 except AssertionError:
diff --git a/cubicweb_narval/views/__init__.py b/cubicweb_narval/views/__init__.py
--- a/cubicweb_narval/views/__init__.py
+++ b/cubicweb_narval/views/__init__.py
@@ -24,5 +24,6 @@
         else:
             self.w(self._cw._('no log to display'))
 
+
 _abaa = uicfg.actionbox_appearsin_addmenu
 _abaa.tag_object_of(('*', 'execution_of', 'Recipe'), False)
diff --git a/test/test_functional.py b/test/test_functional.py
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -101,6 +101,7 @@
             self.assertEqual(1, len(cwplan.execution_log))
             self.assertIn('banzai!', cwplan.execution_log[0].data.read())
 
+
 if __name__ == '__main__':
     import unittest
     unittest.main()
diff --git a/test/unittest_security.py b/test/unittest_security.py
--- a/test/unittest_security.py
+++ b/test/unittest_security.py
@@ -58,6 +58,7 @@
                                      execution_of=recipe)
             cnx.commit()
 
+
 if __name__ == '__main__':
     import unittest
     unittest.main()
diff --git a/test/unittest_views.py b/test/unittest_views.py
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -59,6 +59,7 @@
             self.assertIn(str(plan_last.eid), plans[1])
             self.assertIn(str(plan_first.eid), plans[2])
 
+
 if __name__ == '__main__':
     import unittest
     unittest.main()




More information about the cubicweb-devel mailing list