changeset 29cddc085dc0 in modules/stock_supply_day:default
details:
https://hg.tryton.org/modules/stock_supply_day?cmd=changeset&node=29cddc085dc0
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 1 +
purchase.py | 3 ++-
setup.py | 3 ++-
tests/__init__.py | 3 ++-
tests/test_stock_supply_day.py | 12 ++++++------
6 files changed, 16 insertions(+), 9 deletions(-)
diffs (83 lines):
diff -r 291f3d5eeedb -r 29cddc085dc0 .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 291f3d5eeedb -r 29cddc085dc0 __init__.py
--- a/__init__.py Mon Nov 01 17:25:58 2021 +0100
+++ b/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
+
from . import purchase
diff -r 291f3d5eeedb -r 29cddc085dc0 purchase.py
--- a/purchase.py Mon Nov 01 17:25:58 2021 +0100
+++ b/purchase.py Sat Dec 11 17:58:45 2021 +0100
@@ -1,8 +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.
import datetime
+
from trytond.model import ModelSQL, fields
-from trytond.pool import PoolMeta, Pool
+from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
diff -r 291f3d5eeedb -r 29cddc085dc0 setup.py
--- a/setup.py Mon Nov 01 17:25:58 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):
diff -r 291f3d5eeedb -r 29cddc085dc0 tests/__init__.py
--- a/tests/__init__.py Mon Nov 01 17:25:58 2021 +0100
+++ b/tests/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,7 +2,8 @@
# this repository contains the full copyright notices and license terms.
try:
- from trytond.modules.stock_supply_day.tests.test_stock_supply_day import
suite # noqa: E501
+ from trytond.modules.stock_supply_day.tests.test_stock_supply_day import \
+ suite # noqa: E501
except ImportError:
from .test_stock_supply_day import suite
diff -r 291f3d5eeedb -r 29cddc085dc0 tests/test_stock_supply_day.py
--- a/tests/test_stock_supply_day.py Mon Nov 01 17:25:58 2021 +0100
+++ b/tests/test_stock_supply_day.py Sat Dec 11 17:58:45 2021 +0100
@@ -1,15 +1,15 @@
# 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 datetime
import unittest
-import datetime
from decimal import Decimal
+
import trytond.tests.test_tryton
+from trytond.modules.account.tests import create_chart
+from trytond.modules.company.tests import (
+ CompanyTestMixin, create_company, set_company)
+from trytond.pool import Pool
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
-from trytond.pool import Pool
-
-from trytond.modules.company.tests import (
- create_company, set_company, CompanyTestMixin)
-from trytond.modules.account.tests import create_chart
class StockSupplyDayTestCase(CompanyTestMixin, ModuleTestCase):