Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+2
-3
@@ -2,9 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from . import account
|
||||
from . import invoice
|
||||
from . import party
|
||||
|
||||
from . import account, invoice, party
|
||||
|
||||
|
||||
def register():
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.pyson import If, Eval, Bool
|
||||
from trytond.pyson import Bool, Eval, If
|
||||
|
||||
|
||||
def AccountTypeMixin(template=False):
|
||||
|
||||
+2
-2
@@ -3,10 +3,10 @@
|
||||
from decimal import Decimal
|
||||
|
||||
from trytond.i18n import gettext
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.model import ModelView, fields
|
||||
from trytond.wizard import Wizard, StateView, StateTransition, Button
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Eval
|
||||
from trytond.wizard import Button, StateTransition, StateView, Wizard
|
||||
|
||||
from .exceptions import DepositError
|
||||
|
||||
|
||||
@@ -2,18 +2,17 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from decimal import Decimal
|
||||
|
||||
from sql import Null, Literal, For
|
||||
from sql import For, Literal, Null
|
||||
from sql.aggregate import Sum
|
||||
from sql.conditionals import Coalesce
|
||||
|
||||
from trytond.i18n import gettext
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.model import fields
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
|
||||
from trytond.modules.party.exceptions import EraseError
|
||||
from trytond.modules.currency.fields import Monetary
|
||||
from trytond.modules.party.exceptions import EraseError
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Party(metaclass=PoolMeta):
|
||||
|
||||
@@ -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
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.account_deposit.tests.test_account_deposit import suite # noqa: E501
|
||||
from trytond.modules.account_deposit.tests.test_account_deposit import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_account_deposit import suite
|
||||
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
# 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
|
||||
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
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
import unittest
|
||||
|
||||
from trytond.modules.company.tests import (
|
||||
PartyCompanyCheckEraseMixin, CompanyTestMixin)
|
||||
CompanyTestMixin, PartyCompanyCheckEraseMixin)
|
||||
from trytond.tests.test_tryton import (
|
||||
ModuleTestCase, doctest_checker, doctest_teardown)
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
|
||||
|
||||
class AccountDepositTestCase(
|
||||
|
||||
Reference in New Issue
Block a user