changeset f7e117140a4f in modules/web_shop:default
details: https://hg.tryton.org/modules/web_shop?cmd=changeset&node=f7e117140a4f
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 4 +---
sale.py | 6 +++---
setup.py | 3 ++-
tests/test_web_shop.py | 4 +---
web.py | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)
diffs (92 lines):
diff -r e6f7ef5c2e90 -r f7e117140a4f .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 e6f7ef5c2e90 -r f7e117140a4f __init__.py
--- a/__init__.py Mon Nov 01 17:26:14 2021 +0100
+++ b/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -5,9 +5,7 @@
__all__ = ['register']
-from . import web
-from . import product
-from . import sale
+from . import product, sale, web
def register():
diff -r e6f7ef5c2e90 -r f7e117140a4f sale.py
--- a/sale.py Mon Nov 01 17:26:14 2021 +0100
+++ b/sale.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
import binascii
import os
+
try:
from secrets import token_hex
except ImportError:
@@ -15,11 +16,10 @@
from trytond.i18n import gettext
from trytond.model import Exclude, fields
-from trytond.pool import PoolMeta, Pool
+from trytond.modules.sale.exceptions import SaleValidationError
+from trytond.pool import Pool, PoolMeta
from trytond.pyson import Bool, Eval
-from trytond.modules.sale.exceptions import SaleValidationError
-
class Sale(metaclass=PoolMeta):
__name__ = 'sale.sale'
diff -r e6f7ef5c2e90 -r f7e117140a4f setup.py
--- a/setup.py Mon Nov 01 17:26:14 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, slice=None):
diff -r e6f7ef5c2e90 -r f7e117140a4f tests/test_web_shop.py
--- a/tests/test_web_shop.py Mon Nov 01 17:26:14 2021 +0100
+++ b/tests/test_web_shop.py Sat Dec 11 17:58:45 2021 +0100
@@ -3,12 +3,10 @@
import unittest
-
+from trytond.modules.company.tests import CompanyTestMixin
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import suite as test_suite
-from trytond.modules.company.tests import CompanyTestMixin
-
class WebShopTestCase(CompanyTestMixin, ModuleTestCase):
'Test Web Shop module'
diff -r e6f7ef5c2e90 -r f7e117140a4f web.py
--- a/web.py Mon Nov 01 17:26:14 2021 +0100
+++ b/web.py Sat Dec 11 17:58:45 2021 +0100
@@ -7,10 +7,10 @@
from trytond.cache import Cache
from trytond.model import (
- ModelSQL, ModelView, DeactivableMixin, Exclude, fields)
-from trytond.transaction import Transaction
+ DeactivableMixin, Exclude, ModelSQL, ModelView, fields)
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval
+from trytond.transaction import Transaction
class Many2ManyInactive(fields.Many2Many):