changeset 50a6cf1c1753 in modules/web_shop_shopify:default
details: 
https://hg.tryton.org/modules/web_shop_shopify?cmd=changeset&node=50a6cf1c1753
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                     |  3 +++
 __init__.py                    |  8 +-------
 account.py                     |  2 +-
 party.py                       |  2 +-
 product.py                     |  6 +++---
 sale.py                        |  5 ++---
 setup.py                       |  3 ++-
 stock.py                       |  4 ++--
 tests/__init__.py              |  3 ++-
 tests/test_web_shop_shopify.py |  5 ++---
 web.py                         |  6 +++---
 11 files changed, 22 insertions(+), 25 deletions(-)

diffs (161 lines):

diff -r 8aa28d9abafd -r 50a6cf1c1753 .isort.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.isort.cfg        Sat Dec 11 17:58:45 2021 +0100
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff -r 8aa28d9abafd -r 50a6cf1c1753 __init__.py
--- a/__init__.py       Tue Nov 23 14:41:20 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:45 2021 +0100
@@ -3,13 +3,7 @@
 
 from trytond.pool import Pool
 
-from . import ir
-from . import web
-from . import product
-from . import party
-from . import sale
-from . import account
-from . import stock
+from . import account, ir, party, product, sale, stock, web
 
 __all__ = ['register']
 
diff -r 8aa28d9abafd -r 50a6cf1c1753 account.py
--- a/account.py        Tue Nov 23 14:41:20 2021 +0100
+++ b/account.py        Sat Dec 11 17:58:45 2021 +0100
@@ -4,7 +4,7 @@
 from decimal import Decimal
 
 from trytond.model import Unique
-from trytond.pool import PoolMeta, Pool
+from trytond.pool import Pool, PoolMeta
 
 from .common import IdentifierMixin
 
diff -r 8aa28d9abafd -r 50a6cf1c1753 party.py
--- a/party.py  Tue Nov 23 14:41:20 2021 +0100
+++ b/party.py  Sat Dec 11 17:58:45 2021 +0100
@@ -1,6 +1,6 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
-from trytond.pool import PoolMeta, Pool
+from trytond.pool import Pool, PoolMeta
 from trytond.tools import remove_forbidden_chars
 
 from .common import IdentifiersMixin, setattr_changed
diff -r 8aa28d9abafd -r 50a6cf1c1753 product.py
--- a/product.py        Tue Nov 23 14:41:20 2021 +0100
+++ b/product.py        Sat Dec 11 17:58:45 2021 +0100
@@ -2,14 +2,14 @@
 # this repository contains the full copyright notices and license terms.
 from decimal import Decimal
 
+import pyactiveresource
 import shopify
-import pyactiveresource
 
 from trytond.i18n import gettext
 from trytond.model import ModelSQL, ModelView, fields
 from trytond.model.exceptions import AccessError
-from trytond.pool import PoolMeta, Pool
-from trytond.pyson import Eval, If, Bool
+from trytond.pool import Pool, PoolMeta
+from trytond.pyson import Bool, Eval, If
 from trytond.tools import grouped_slice, slugify
 
 from .common import IdentifiersMixin, IdentifiersUpdateMixin
diff -r 8aa28d9abafd -r 50a6cf1c1753 sale.py
--- a/sale.py   Tue Nov 23 14:41:20 2021 +0100
+++ b/sale.py   Sat Dec 11 17:58:45 2021 +0100
@@ -8,14 +8,13 @@
 
 from trytond.i18n import gettext
 from trytond.model import Unique, fields
-from trytond.pool import PoolMeta, Pool
-
 from trytond.modules.currency.fields import Monetary
 from trytond.modules.product import round_price
 from trytond.modules.sale.exceptions import SaleConfirmError
+from trytond.pool import Pool, PoolMeta
 
+from .common import IdentifierMixin
 from .exceptions import ShopifyError
-from .common import IdentifierMixin
 from .web import BACKOFF_TIME, BACKOFF_TIME_FACTOR
 
 
diff -r 8aa28d9abafd -r 50a6cf1c1753 setup.py
--- a/setup.py  Tue Nov 23 14:41:20 2021 +0100
+++ b/setup.py  Sat Dec 11 17:58:45 2021 +0100
@@ -6,7 +6,8 @@
 import os
 import re
 from configparser import ConfigParser
-from setuptools import setup, find_packages
+
+from setuptools import find_packages, setup
 
 
 def read(fname):
diff -r 8aa28d9abafd -r 50a6cf1c1753 stock.py
--- a/stock.py  Tue Nov 23 14:41:20 2021 +0100
+++ b/stock.py  Sat Dec 11 17:58:45 2021 +0100
@@ -3,8 +3,8 @@
 import shopify
 
 from trytond.i18n import lazy_gettext
-from trytond.model import ModelSQL, ModelView, fields, Unique
-from trytond.pool import PoolMeta, Pool
+from trytond.model import ModelSQL, ModelView, Unique, fields
+from trytond.pool import Pool, PoolMeta
 
 from .common import IdentifierMixin
 
diff -r 8aa28d9abafd -r 50a6cf1c1753 tests/__init__.py
--- a/tests/__init__.py Tue Nov 23 14:41:20 2021 +0100
+++ b/tests/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,7 +2,8 @@
 # this repository contains the full copyright notices and license terms.
 
 try:
-    from trytond.modules.web_shop_shopify.tests.test_web_shop_shopify import 
suite  # noqa: E501
+    from trytond.modules.web_shop_shopify.tests.test_web_shop_shopify import \
+        suite  # noqa: E501
 except ImportError:
     from .test_web_shop_shopify import suite
 
diff -r 8aa28d9abafd -r 50a6cf1c1753 tests/test_web_shop_shopify.py
--- a/tests/test_web_shop_shopify.py    Tue Nov 23 14:41:20 2021 +0100
+++ b/tests/test_web_shop_shopify.py    Sat Dec 11 17:58:45 2021 +0100
@@ -5,10 +5,9 @@
 import os
 import unittest
 
-from trytond.tests.test_tryton import ModuleTestCase
+from trytond.tests.test_tryton import (
+    ModuleTestCase, doctest_checker, doctest_teardown)
 from trytond.tests.test_tryton import suite as test_suite
-from trytond.tests.test_tryton import doctest_teardown
-from trytond.tests.test_tryton import doctest_checker
 
 
 class WebShopShopifyTestCase(ModuleTestCase):
diff -r 8aa28d9abafd -r 50a6cf1c1753 web.py
--- a/web.py    Tue Nov 23 14:41:20 2021 +0100
+++ b/web.py    Sat Dec 11 17:58:45 2021 +0100
@@ -10,9 +10,9 @@
 from trytond.cache import Cache
 from trytond.config import config
 from trytond.i18n import gettext
-from trytond.model import ModelSQL, ModelView, fields, Unique
-from trytond.model import sequence_ordered, MatchMixin
-from trytond.pool import PoolMeta, Pool
+from trytond.model import (
+    MatchMixin, ModelSQL, ModelView, Unique, fields, sequence_ordered)
+from trytond.pool import Pool, PoolMeta
 from trytond.pyson import Eval
 from trytond.transaction import Transaction
 

Reply via email to