changeset 7c08a08886bf in modules/stock_product_location:default
details: 
https://hg.tryton.org/modules/stock_product_location?cmd=changeset&node=7c08a08886bf
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                           |  3 +++
 __init__.py                          |  5 ++---
 location.py                          |  6 +++---
 product.py                           |  2 +-
 setup.py                             |  3 ++-
 tests/__init__.py                    |  3 ++-
 tests/test_stock_product_location.py |  6 +++---
 7 files changed, 16 insertions(+), 12 deletions(-)

diffs (94 lines):

diff -r a5e16d9b0e3c -r 7c08a08886bf .isort.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.isort.cfg        Sat Dec 11 17:58:44 2021 +0100
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff -r a5e16d9b0e3c -r 7c08a08886bf __init__.py
--- a/__init__.py       Tue Nov 23 14:41:20 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:44 2021 +0100
@@ -2,9 +2,8 @@
 # this repository contains the full copyright notices and license terms.
 
 from trytond.pool import Pool
-from . import product
-from . import location
-from . import production
+
+from . import location, product, production
 
 
 def register():
diff -r a5e16d9b0e3c -r 7c08a08886bf location.py
--- a/location.py       Tue Nov 23 14:41:20 2021 +0100
+++ b/location.py       Sat Dec 11 17:58:44 2021 +0100
@@ -1,9 +1,9 @@
 # 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.model import (ModelView, ModelSQL, MatchMixin, fields,
-    sequence_ordered)
-from trytond.pyson import If, Eval, Bool
+from trytond.model import (
+    MatchMixin, ModelSQL, ModelView, fields, sequence_ordered)
 from trytond.pool import PoolMeta
+from trytond.pyson import Bool, Eval, If
 
 
 class ProductLocation(sequence_ordered(), ModelSQL, ModelView, MatchMixin):
diff -r a5e16d9b0e3c -r 7c08a08886bf product.py
--- a/product.py        Tue Nov 23 14:41:20 2021 +0100
+++ b/product.py        Sat Dec 11 17:58:44 2021 +0100
@@ -1,8 +1,8 @@
 # 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.model import fields
+from trytond.pool import Pool, PoolMeta
 from trytond.pyson import Eval
-from trytond.pool import PoolMeta, Pool
 
 
 class Template(metaclass=PoolMeta):
diff -r a5e16d9b0e3c -r 7c08a08886bf setup.py
--- a/setup.py  Tue Nov 23 14:41:20 2021 +0100
+++ b/setup.py  Sat Dec 11 17:58:44 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 a5e16d9b0e3c -r 7c08a08886bf tests/__init__.py
--- a/tests/__init__.py Tue Nov 23 14:41:20 2021 +0100
+++ b/tests/__init__.py Sat Dec 11 17:58:44 2021 +0100
@@ -2,7 +2,8 @@
 # this repository contains the full copyright notices and license terms.
 
 try:
-    from 
trytond.modules.stock_product_location.tests.test_stock_product_location import 
suite  # noqa: E501
+    from 
trytond.modules.stock_product_location.tests.test_stock_product_location import 
\
+        suite  # noqa: E501
 except ImportError:
     from .test_stock_product_location import suite
 
diff -r a5e16d9b0e3c -r 7c08a08886bf tests/test_stock_product_location.py
--- a/tests/test_stock_product_location.py      Tue Nov 23 14:41:20 2021 +0100
+++ b/tests/test_stock_product_location.py      Sat Dec 11 17:58:44 2021 +0100
@@ -2,10 +2,10 @@
 # this repository contains the full copyright notices and license terms.
 import doctest
 import unittest
+
 import trytond.tests.test_tryton
-from trytond.tests.test_tryton import ModuleTestCase
-from trytond.tests.test_tryton import doctest_teardown
-from trytond.tests.test_tryton import doctest_checker
+from trytond.tests.test_tryton import (
+    ModuleTestCase, doctest_checker, doctest_teardown)
 
 
 class StockProductLocationTestCase(ModuleTestCase):

Reply via email to