changeset 3c74da719e50 in modules/stock_secondary_unit:default
details: 
https://hg.tryton.org/modules/stock_secondary_unit?cmd=changeset&node=3c74da719e50
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                         |  3 +++
 __init__.py                        |  1 +
 setup.py                           |  3 ++-
 stock.py                           |  5 ++---
 tests/__init__.py                  |  3 ++-
 tests/test_stock_secondary_unit.py |  1 -
 6 files changed, 10 insertions(+), 6 deletions(-)

diffs (72 lines):

diff -r 9647b2a192c3 -r 3c74da719e50 .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 9647b2a192c3 -r 3c74da719e50 __init__.py
--- a/__init__.py       Mon Nov 01 17:12:29 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:44 2021 +0100
@@ -2,6 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 
 from trytond.pool import Pool
+
 from . import stock
 
 __all__ = ['register']
diff -r 9647b2a192c3 -r 3c74da719e50 setup.py
--- a/setup.py  Mon Nov 01 17:12:29 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 9647b2a192c3 -r 3c74da719e50 stock.py
--- a/stock.py  Mon Nov 01 17:12:29 2021 +0100
+++ b/stock.py  Sat Dec 11 17:58:44 2021 +0100
@@ -1,11 +1,10 @@
 # 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 PoolMeta, Pool
-from trytond.pyson import Eval
-
 from trytond.modules.currency.fields import Monetary
 from trytond.modules.product import price_digits, round_price
+from trytond.pool import Pool, PoolMeta
+from trytond.pyson import Eval
 
 
 class Move(metaclass=PoolMeta):
diff -r 9647b2a192c3 -r 3c74da719e50 tests/__init__.py
--- a/tests/__init__.py Mon Nov 01 17:12:29 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_secondary_unit.tests.test_stock_secondary_unit 
import suite  # noqa: E501
+    from trytond.modules.stock_secondary_unit.tests.test_stock_secondary_unit 
import \
+        suite  # noqa: E501
 except ImportError:
     from .test_stock_secondary_unit import suite
 
diff -r 9647b2a192c3 -r 3c74da719e50 tests/test_stock_secondary_unit.py
--- a/tests/test_stock_secondary_unit.py        Mon Nov 01 17:12:29 2021 +0100
+++ b/tests/test_stock_secondary_unit.py        Sat Dec 11 17:58:44 2021 +0100
@@ -3,7 +3,6 @@
 
 import unittest
 
-
 from trytond.tests.test_tryton import ModuleTestCase
 from trytond.tests.test_tryton import suite as test_suite
 

Reply via email to