Follow isort formatting

issue10928
This commit is contained in:
Cédric Krier committed 2021-12-11 17:58:45 +01:00
1 parent 9b235bd784
commit 6869922338
7 files changed
+20 -19

No files matched your search

+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 user
from . import party
from . import ir
from . import ir, party, user
def register():
+1 -1
View File
@@ -1,6 +1,6 @@
# 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.pool import PoolMeta, Pool
from trytond.pool import Pool, PoolMeta
from trytond.tools import escape_wildcard
+1 -1
View File
@@ -1,6 +1,6 @@
# 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.pool import PoolMeta, Pool
from trytond.pool import Pool, PoolMeta
class Replace(metaclass=PoolMeta):
+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):
+5 -6
View File
@@ -2,16 +2,15 @@
# this repository contains the full copyright notices and license terms.
import unittest
from unittest.mock import ANY, patch
from unittest.mock import patch, ANY
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.tests.test_tryton import suite as test_suite
from trytond.pool import Pool
from trytond.config import config
from trytond.modules.party.tests import PartyCheckEraseMixin
from trytond.modules.web_user import user as user_module
from trytond.pool import Pool
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import suite as test_suite
from trytond.tests.test_tryton import with_transaction
VALIDATION_URL = 'http://www.example.com/validation'
RESET_PASSWORD_URL = 'http://www.example.com/reset_password'
+6 -7
View File
@@ -25,18 +25,17 @@ from sql.operators import Equal
from trytond.config import config
from trytond.exceptions import RateLimitException
from trytond.ir.session import token_hex
from trytond.model import (
ModelView, ModelSQL, DeactivableMixin, fields, Unique, Exclude,
avatar_mixin)
DeactivableMixin, Exclude, ModelSQL, ModelView, Unique, avatar_mixin,
fields)
from trytond.pool import Pool
from trytond.pyson import Eval
from trytond.report import Report, get_email
from trytond.transaction import Transaction
from trytond.tools.email_ import set_from_header
from trytond.res.user import CRYPT_CONTEXT, LoginAttempt
from trytond.sendmail import sendmail_transactional
from trytond.ir.session import token_hex
from trytond.res.user import LoginAttempt, CRYPT_CONTEXT
from trytond.tools.email_ import set_from_header
from trytond.transaction import Transaction
logger = logging.getLogger(__name__)