changeset 42be9f0aa85e in modules/stock_quantity_early_planning:default
details:
https://hg.tryton.org/modules/stock_quantity_early_planning?cmd=changeset&node=42be9f0aa85e
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
setup.py | 3 ++-
stock.py | 9 ++++-----
tests/__init__.py | 3 ++-
tests/test_stock_quantity_early_planning.py | 11 ++++-------
5 files changed, 15 insertions(+), 14 deletions(-)
diffs (79 lines):
diff -r e351c5b42325 -r 42be9f0aa85e .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 e351c5b42325 -r 42be9f0aa85e setup.py
--- a/setup.py Tue Nov 16 10:26:08 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 e351c5b42325 -r 42be9f0aa85e stock.py
--- a/stock.py Tue Nov 16 10:26:08 2021 +0100
+++ b/stock.py Sat Dec 11 17:58:44 2021 +0100
@@ -3,14 +3,13 @@
from collections import defaultdict
from itertools import groupby
-from trytond.model import ModelSQL, ModelView, Model, Workflow, fields
+from trytond.model import Model, ModelSQL, ModelView, Workflow, fields
+from trytond.modules.company.model import (
+ employee_field, reset_employee, set_employee)
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval
from trytond.transaction import Transaction
-from trytond.wizard import Wizard, StateView, StateAction, Button
-
-from trytond.modules.company.model import (
- set_employee, reset_employee, employee_field)
+from trytond.wizard import Button, StateAction, StateView, Wizard
class QuantityEarlyPlan(Workflow, ModelSQL, ModelView):
diff -r e351c5b42325 -r 42be9f0aa85e tests/__init__.py
--- a/tests/__init__.py Tue Nov 16 10:26:08 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_quantity_early_planning.tests.test_stock_quantity_early_planning
import suite # noqa: E501
+ from
trytond.modules.stock_quantity_early_planning.tests.test_stock_quantity_early_planning
import \
+ suite # noqa: E501
except ImportError:
from .test_stock_quantity_early_planning import suite
diff -r e351c5b42325 -r 42be9f0aa85e tests/test_stock_quantity_early_planning.py
--- a/tests/test_stock_quantity_early_planning.py Tue Nov 16 10:26:08
2021 +0100
+++ b/tests/test_stock_quantity_early_planning.py Sat Dec 11 17:58:44
2021 +0100
@@ -1,16 +1,13 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
+import doctest
import unittest
-import doctest
-
-from trytond.tests.test_tryton import ModuleTestCase
+from trytond.modules.company.tests import CompanyTestMixin
+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
-
-from trytond.modules.company.tests import CompanyTestMixin
class StockQuantityEarlyPlanningTestCase(CompanyTestMixin, ModuleTestCase):