diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000000..bb03d08a82 --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +ignore=E123,E124,E126,E128,W503 diff --git a/carrier.py b/carrier.py index 037e783161..f27ffaf366 100644 --- a/carrier.py +++ b/carrier.py @@ -3,8 +3,6 @@ from trytond.model import fields from trytond.pool import PoolMeta -__all__ = ['Carrier'] - class Carrier(metaclass=PoolMeta): __name__ = 'carrier' diff --git a/setup.py b/setup.py index f2453f7fc8..d550518ff8 100755 --- a/setup.py +++ b/setup.py @@ -87,8 +87,8 @@ setup(name=name, keywords='tryton purchase shipment cost', package_dir={'trytond.modules.purchase_shipment_cost': '.'}, packages=( - ['trytond.modules.purchase_shipment_cost'] + - ['trytond.modules.purchase_shipment_cost.%s' % p + ['trytond.modules.purchase_shipment_cost'] + + ['trytond.modules.purchase_shipment_cost.%s' % p for p in find_packages()] ), package_data={ @@ -103,7 +103,8 @@ setup(name=name, '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 --git a/stock.py b/stock.py index 666278e59e..1e6962c79d 100644 --- a/stock.py +++ b/stock.py @@ -10,8 +10,6 @@ from trytond.transaction import Transaction from trytond.modules.product import price_digits -__all__ = ['ShipmentIn', 'Move'] - class ShipmentIn(metaclass=PoolMeta): __name__ = 'stock.shipment.in' diff --git a/tests/__init__.py b/tests/__init__.py index 47c716df4e..8b22afd6ba 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,7 @@ # this repository contains the full copyright notices and license terms. try: - from trytond.modules.purchase_shipment_cost.tests.test_purchase_shipment_cost import suite + from trytond.modules.purchase_shipment_cost.tests.test_purchase_shipment_cost import suite # noqa: E501 except ImportError: from .test_purchase_shipment_cost import suite diff --git a/tests/test_purchase_shipment_cost.py b/tests/test_purchase_shipment_cost.py index eb30a905ac..7b2d57e9f1 100644 --- a/tests/test_purchase_shipment_cost.py +++ b/tests/test_purchase_shipment_cost.py @@ -28,7 +28,8 @@ def suite(): checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) suite.addTests(doctest.DocFileSuite( - 'scenario_purchase_shipment_cost_with_account_stock_anglo_saxon.rst', + 'scenario_purchase_shipment_cost_' + 'with_account_stock_anglo_saxon.rst', tearDown=doctest_teardown, encoding='utf-8', checker=doctest_checker, optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))