changeset 2177dcc73df5 in modules/stock_split:default
details:
https://hg.tryton.org/modules/stock_split?cmd=changeset;node=2177dcc73df5
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 ++
setup.py | 7 ++++---
stock.py | 4 ----
3 files changed, 6 insertions(+), 7 deletions(-)
diffs (44 lines):
diff -r fe7c04739b67 -r 2177dcc73df5 .flake8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.flake8 Sun Mar 01 12:33:54 2020 +0100
@@ -0,0 +1,2 @@
+[flake8]
+ignore=E123,E124,E126,E128,W503
diff -r fe7c04739b67 -r 2177dcc73df5 setup.py
--- a/setup.py Wed Dec 04 11:09:37 2019 +0100
+++ b/setup.py Sun Mar 01 12:33:54 2020 +0100
@@ -79,8 +79,8 @@
keywords='tryton stock split',
package_dir={'trytond.modules.stock_split': '.'},
packages=(
- ['trytond.modules.stock_split'] +
- ['trytond.modules.stock_split.%s' % p for p in find_packages()]
+ ['trytond.modules.stock_split']
+ + ['trytond.modules.stock_split.%s' % p for p in find_packages()]
),
package_data={
'trytond.modules.stock_split': (info.get('xml', [])
@@ -95,7 +95,8 @@
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Legal Industry',
'Intended Audience :: Manufacturing',
- 'License :: OSI Approved :: GNU General Public License v3 or later
(GPLv3+)',
+ 'License :: OSI Approved :: '
+ 'GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: Bulgarian',
'Natural Language :: Catalan',
'Natural Language :: Chinese (Simplified)',
diff -r fe7c04739b67 -r 2177dcc73df5 stock.py
--- a/stock.py Wed Dec 04 11:09:37 2019 +0100
+++ b/stock.py Sun Mar 01 12:33:54 2020 +0100
@@ -6,10 +6,6 @@
from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
-__all__ = ['Move', 'SplitMoveStart', 'SplitMove',
- 'ShipmentInReturn', 'ShipmentOut', 'ShipmentInternal',
- 'SplitShipment', 'SplitShipmentStart']
-
class Move(metaclass=PoolMeta):
__name__ = 'stock.move'