changeset 759d8b8fb2bd in modules/account_es:default
details: 
https://hg.tryton.org/modules/account_es?cmd=changeset;node=759d8b8fb2bd
description:
        Fix flake8 errors and warnings

        We add the flake8 configuration used so we ensure everyone uses the 
same.
        We remove the usage of __all__ for non public API.
        When possible, we rationalize the class name according to its __name__ 
and module.

        issue9082
        review297061002
diffstat:

 .flake8          |  2 ++
 account.py       |  2 --
 party.py         |  2 --
 reporting_tax.py |  5 -----
 setup.py         |  7 ++++---
 5 files changed, 6 insertions(+), 12 deletions(-)

diffs (69 lines):

diff -r caf8ad9e922c -r 759d8b8fb2bd .flake8
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.flake8   Sun Mar 01 12:33:51 2020 +0100
@@ -0,0 +1,2 @@
+[flake8]
+ignore=E123,E124,E126,E128,W503
diff -r caf8ad9e922c -r 759d8b8fb2bd account.py
--- a/account.py        Sat Feb 22 15:17:32 2020 +0100
+++ b/account.py        Sun Mar 01 12:33:51 2020 +0100
@@ -4,8 +4,6 @@
 from trytond.pool import PoolMeta
 from trytond.pyson import Bool, Eval
 
-__all__ = ['TaxCodeTemplate', 'TaxCode', 'TaxTemplate', 'Tax']
-
 
 class TaxCodeTemplate(metaclass=PoolMeta):
     __name__ = 'account.tax.code.template'
diff -r caf8ad9e922c -r 759d8b8fb2bd party.py
--- a/party.py  Sat Feb 22 15:17:32 2020 +0100
+++ b/party.py  Sun Mar 01 12:33:51 2020 +0100
@@ -3,8 +3,6 @@
 from trytond.model import fields
 from trytond.pool import PoolMeta
 
-__all__ = ['Party']
-
 
 class Party(metaclass=PoolMeta):
     __name__ = 'party.party'
diff -r caf8ad9e922c -r 759d8b8fb2bd reporting_tax.py
--- a/reporting_tax.py  Sat Feb 22 15:17:32 2020 +0100
+++ b/reporting_tax.py  Sun Mar 01 12:33:51 2020 +0100
@@ -24,11 +24,6 @@
 
 from .exceptions import PrintError
 
-__all__ = ['AEAT111', 'AEAT115', 'AEAT303', 'PrintAEATStart', 'PrintAEAT',
-    'ESVATList', 'ESVATListContext', 'AEAT347', 'ECOperationList',
-    'ECOperationListContext', 'AEAT349']
-
-
 # XXX fix: https://genshi.edgewall.org/ticket/582
 from genshi.template.astutil import ASTCodeGenerator, ASTTransformer
 if not hasattr(ASTCodeGenerator, 'visit_NameConstant'):
diff -r caf8ad9e922c -r 759d8b8fb2bd setup.py
--- a/setup.py  Sat Feb 22 15:17:32 2020 +0100
+++ b/setup.py  Sun Mar 01 12:33:51 2020 +0100
@@ -83,8 +83,8 @@
     keywords='tryton account chart spanish',
     package_dir={'trytond.modules.account_es': '.'},
     packages=(
-        ['trytond.modules.account_es'] +
-        ['trytond.modules.account_es.%s' % p for p in find_packages()]
+        ['trytond.modules.account_es']
+        + ['trytond.modules.account_es.%s' % p for p in find_packages()]
         ),
     package_data={
         'trytond.modules.account_es': (info.get('xml', [])
@@ -98,7 +98,8 @@
         'Intended Audience :: Developers',
         'Intended Audience :: Financial and Insurance Industry',
         'Intended Audience :: Legal Industry',
-        'License :: OSI Approved :: GNU General Public License v3 or later 
(GPLv3+)',
+        'License :: OSI Approved :: '
+        'GNU General Public License v3 or later (GPLv3+)',
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 3',

Reply via email to