[PATCH 5 of 8 Invoice cube] [autopep8] E302 - Add missing 2 blank lines

Nsukami Patrick ndkpatt at gmail.com
Wed Jun 12 14:55:27 CEST 2019


# HG changeset patch
# User Nsukami Patrick <ndkpatt at gmail dot com>
# Date 1560343912 0
#      Wed Jun 12 12:51:52 2019 +0000
# Node ID 3a0816d8db1141dbed688330380b534ca374fb4b
# Parent  4ede1bb5786f36acaf3e7cc63e2f4f0ea94619b5
[autopep8] E302 - Add missing 2 blank lines

diff --git a/cubicweb_invoice/entities.py b/cubicweb_invoice/entities.py
--- a/cubicweb_invoice/entities.py
+++ b/cubicweb_invoice/entities.py
@@ -2,6 +2,7 @@
 
 from cubicweb.entities import AnyEntity, fetch_config
 
+
 class Invoice(AnyEntity):
     __regid__ = 'Invoice'
     fetch_attrs, fetch_order = fetch_config(['num'])
diff --git a/cubicweb_invoice/views.py b/cubicweb_invoice/views.py
--- a/cubicweb_invoice/views.py
+++ b/cubicweb_invoice/views.py
@@ -8,21 +8,25 @@
 uicfg.autoform_section.tag_subject_of(('Invoice', 'credit_account', '*'), 'main', 'attributes')
 uicfg.autoform_section.tag_subject_of(('Invoice', 'debit_account', '*'), 'muledit', 'attributes')
 
+
 class InvoiceEmitDateFacet(DateRangeFacet):
     __regid__ = 'invoice.emit_date.facet'
     __select__ = DateRangeFacet.__select__ & is_instance('Invoice')
     rtype = 'emit_date'
 
+
 class InvoiceDueDateFacet(DateRangeFacet):
     __regid__ = 'invoice.due_date.facet'
     __select__ = DateRangeFacet.__select__ & is_instance('Invoice')
     rtype = 'due_date'
 
+
 class InvoicePayDateFacet(DateRangeFacet):
     __regid__ = 'invoice.pay_date.facet'
     __select__ = DateRangeFacet.__select__ & is_instance('Invoice')
     rtype = 'pay_date'
 
+
 class InvoiceAmountFacet(RangeFacet):
     __regid__ = 'invoice.amount.facet'
     __select__ = RangeFacet.__select__ & is_instance('Invoice')
diff --git a/test/test_invoice.py b/test/test_invoice.py
--- a/test/test_invoice.py
+++ b/test/test_invoice.py
@@ -1,6 +1,7 @@
 import unittest
 from cubicweb.devtools.testlib import AutomaticWebTest
 
+
 class AutomaticWebTest(AutomaticWebTest):
 
     def to_test_etypes(self):



More information about the cubicweb-devel mailing list