Follow isort formatting

issue10928
This commit is contained in:
Cédric Krier
2021-12-11 17:58:43 +01:00
parent 7f940b9e6f
commit 9955c8ee79
8 changed files with 22 additions and 16 deletions
+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+2 -3
View File
@@ -2,9 +2,8 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from . import sale
from . import account
from . import stock
from . import account, sale, stock
def register():
+1 -1
View File
@@ -3,7 +3,7 @@
from trytond.model import fields
from trytond.pool import Pool, PoolMeta
from trytond.pyson import If, Eval, Bool
from trytond.pyson import Bool, Eval, If
def AccountTypeMixin(template=False):
+1 -1
View File
@@ -1,7 +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.
from trytond.model.exceptions import ValidationError, AccessError
from trytond.model.exceptions import AccessError, ValidationError
class FormulaError(ValidationError):
+7 -6
View File
@@ -1,19 +1,20 @@
# 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 decimal import Decimal
from simpleeval import simple_eval
from itertools import chain
from simpleeval import simple_eval
from trytond.i18n import gettext
from trytond.pool import Pool, PoolMeta
from trytond.model import (
ModelSQL, ModelView, Workflow, DeactivableMixin, fields)
from trytond.pyson import Eval, Bool
from trytond.tools import decistmt
from trytond.transaction import Transaction
DeactivableMixin, ModelSQL, ModelView, Workflow, fields)
from trytond.modules.company.model import (
CompanyMultiValueMixin, CompanyValueMixin)
from trytond.modules.currency.fields import Monetary
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Bool, Eval
from trytond.tools import decistmt
from trytond.transaction import Transaction
from .exceptions import FormulaError
+2 -1
View File
@@ -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):
+2 -1
View File
@@ -2,7 +2,8 @@
# this repository contains the full copyright notices and license terms.
try:
from trytond.modules.sale_advance_payment.tests.test_sale_advance_payment import suite # noqa: E501
from trytond.modules.sale_advance_payment.tests.test_sale_advance_payment import \
suite # noqa: E501
except ImportError:
from .test_sale_advance_payment import suite
+4 -3
View File
@@ -1,10 +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 doctest
import unittest
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 ModuleTestCase
from trytond.tests.test_tryton import doctest_teardown, doctest_checker
class SaleAdvancePaymentTestCase(ModuleTestCase):