Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+1
-7
@@ -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']
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ from collections import defaultdict
|
||||
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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -2,14 +2,14 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from decimal import Decimal
|
||||
|
||||
import shopify
|
||||
import pyactiveresource
|
||||
import shopify
|
||||
|
||||
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
|
||||
|
||||
@@ -8,14 +8,13 @@ import shopify
|
||||
|
||||
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 .exceptions import ShopifyError
|
||||
from .common import IdentifierMixin
|
||||
from .exceptions import ShopifyError
|
||||
from .web import BACKOFF_TIME, BACKOFF_TIME_FACTOR
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import io
|
||||
import os
|
||||
import re
|
||||
from configparser import ConfigParser
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
||||
def read(fname):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
|
||||
@@ -5,10 +5,9 @@ import doctest
|
||||
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):
|
||||
|
||||
@@ -10,9 +10,9 @@ from shopify.api_version import ApiVersion
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user