diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000000..e1c6495da9 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,3 @@ +[settings] +multi_line_output=4 +known_first_party=trytond diff --git a/__init__.py b/__init__.py index 60f222dd63..40283c69a9 100644 --- a/__init__.py +++ b/__init__.py @@ -2,8 +2,8 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from . import party -from . import address + +from . import address, party def register(): diff --git a/address.py b/address.py index 83951ff225..bc29fc1e74 100644 --- a/address.py +++ b/address.py @@ -3,6 +3,7 @@ from trytond.i18n import gettext from trytond.model import fields from trytond.pool import PoolMeta + from . import luhn from .exceptions import SIRETValidationError diff --git a/party.py b/party.py index 34918085f7..1b358d75cb 100644 --- a/party.py +++ b/party.py @@ -3,6 +3,7 @@ from trytond.i18n import gettext from trytond.model import fields from trytond.pool import PoolMeta + from . import luhn from .exceptions import SIRENValidationError diff --git a/setup.py b/setup.py index 0b3362cb21..244cc28e07 100755 --- a/setup.py +++ b/setup.py @@ -2,11 +2,12 @@ # 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 re -import os import io +import os +import re from configparser import ConfigParser -from setuptools import setup, find_packages + +from setuptools import find_packages, setup def read(fname): diff --git a/tests/test_party_siret.py b/tests/test_party_siret.py index 02a995bb86..ec83e8fc66 100644 --- a/tests/test_party_siret.py +++ b/tests/test_party_siret.py @@ -1,9 +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. import unittest + import trytond.tests.test_tryton -from trytond.tests.test_tryton import ModuleTestCase from trytond.modules.party_siret import luhn +from trytond.tests.test_tryton import ModuleTestCase class PartySiretTestCase(ModuleTestCase):