changeset 12daa9e081e3 in modules/product_measurements:default
details:
https://hg.tryton.org/modules/product_measurements?cmd=changeset&node=12daa9e081e3
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 1 +
product.py | 4 ++--
setup.py | 3 ++-
tests/__init__.py | 3 ++-
tests/test_product_measurements.py | 1 +
6 files changed, 11 insertions(+), 4 deletions(-)
diffs (69 lines):
diff -r df0119fd3a84 -r 12daa9e081e3 .isort.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.isort.cfg Sat Dec 11 17:58:43 2021 +0100
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff -r df0119fd3a84 -r 12daa9e081e3 __init__.py
--- a/__init__.py Mon Nov 01 17:08:23 2021 +0100
+++ b/__init__.py Sat Dec 11 17:58:43 2021 +0100
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
+
from . import product
diff -r df0119fd3a84 -r 12daa9e081e3 product.py
--- a/product.py Mon Nov 01 17:08:23 2021 +0100
+++ b/product.py Sat Dec 11 17:58:43 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.pyson import Eval, Bool, Id
-from trytond.pool import PoolMeta, Pool
+from trytond.pool import Pool, PoolMeta
+from trytond.pyson import Bool, Eval, Id
NON_MEASURABLE = ['service']
diff -r df0119fd3a84 -r 12daa9e081e3 setup.py
--- a/setup.py Mon Nov 01 17:08:23 2021 +0100
+++ b/setup.py Sat Dec 11 17:58:43 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 df0119fd3a84 -r 12daa9e081e3 tests/__init__.py
--- a/tests/__init__.py Mon Nov 01 17:08:23 2021 +0100
+++ b/tests/__init__.py Sat Dec 11 17:58:43 2021 +0100
@@ -2,7 +2,8 @@
# this repository contains the full copyright notices and license terms.
try:
- from trytond.modules.product_measurements.tests.test_product_measurements
import suite # noqa: E501
+ from trytond.modules.product_measurements.tests.test_product_measurements
import \
+ suite # noqa: E501
except ImportError:
from .test_product_measurements import suite
diff -r df0119fd3a84 -r 12daa9e081e3 tests/test_product_measurements.py
--- a/tests/test_product_measurements.py Mon Nov 01 17:08:23 2021 +0100
+++ b/tests/test_product_measurements.py Sat Dec 11 17:58:43 2021 +0100
@@ -1,6 +1,7 @@
# 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 unittest
+
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase