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 c28d8fea0e..63c5e9a6a4 100644 --- a/__init__.py +++ b/__init__.py @@ -2,6 +2,7 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool + from . import account diff --git a/account.py b/account.py index f85f23dff1..a7f8886ce0 100644 --- a/account.py +++ b/account.py @@ -2,16 +2,15 @@ # this repository contains the full copyright notices and license terms. from sql import Literal from sql.aggregate import Max, Min, Sum -from sql.operators import Concat from sql.functions import Position +from sql.operators import Concat from trytond.model import ModelSQL, ModelView, fields +from trytond.modules.currency.fields import Monetary from trytond.pool import Pool, PoolMeta from trytond.pyson import Eval from trytond.transaction import Transaction -from trytond.modules.currency.fields import Monetary - class AccountTemplate(metaclass=PoolMeta): __name__ = 'account.account.template' diff --git a/setup.py b/setup.py index 871a0d62a7..90e59cd2ba 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ 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_account_be.py b/tests/test_account_be.py index 2ae205e171..2235068b8f 100644 --- a/tests/test_account_be.py +++ b/tests/test_account_be.py @@ -1,11 +1,11 @@ # 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, with_transaction -from trytond.modules.company.tests import create_company, set_company +import trytond.tests.test_tryton from trytond.modules.account.tests import create_chart +from trytond.modules.company.tests import create_company, set_company +from trytond.tests.test_tryton import ModuleTestCase, with_transaction class AccountBETestCase(ModuleTestCase):