changeset f6c693ed9316 in modules/stock_split:default
details:
https://hg.tryton.org/modules/stock_split?cmd=changeset&node=f6c693ed9316
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 1 +
setup.py | 3 ++-
stock.py | 4 ++--
tests/test_stock_split.py | 11 +++++------
5 files changed, 13 insertions(+), 9 deletions(-)
diffs (70 lines):
diff -r 095c636ba036 -r f6c693ed9316 .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 095c636ba036 -r f6c693ed9316 __init__.py
--- a/__init__.py Mon Nov 01 17:12:53 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
diff -r 095c636ba036 -r f6c693ed9316 setup.py
--- a/setup.py Mon Nov 01 17:12:53 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 095c636ba036 -r f6c693ed9316 stock.py
--- a/stock.py Mon Nov 01 17:12:53 2021 +0100
+++ b/stock.py Sat Dec 11 17:58:44 2021 +0100
@@ -1,10 +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 ModelView, fields
-from trytond.wizard import Wizard, StateView, StateTransition, Button
+from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval
-from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
+from trytond.wizard import Button, StateTransition, StateView, Wizard
class Move(metaclass=PoolMeta):
diff -r 095c636ba036 -r f6c693ed9316 tests/test_stock_split.py
--- a/tests/test_stock_split.py Mon Nov 01 17:12:53 2021 +0100
+++ b/tests/test_stock_split.py Sat Dec 11 17:58:44 2021 +0100
@@ -3,14 +3,13 @@
import doctest
import unittest
from decimal import Decimal
+
import trytond.tests.test_tryton
-from trytond.tests.test_tryton import ModuleTestCase, with_transaction
-from trytond.tests.test_tryton import doctest_teardown
-from trytond.tests.test_tryton import doctest_checker
+from trytond.modules.company.tests import (
+ CompanyTestMixin, create_company, set_company)
from trytond.pool import Pool
-
-from trytond.modules.company.tests import (
- create_company, set_company, CompanyTestMixin)
+from trytond.tests.test_tryton import (
+ ModuleTestCase, doctest_checker, doctest_teardown, with_transaction)
class StockSplitTestCase(CompanyTestMixin, ModuleTestCase):