changeset a325fe495c4a in modules/web_user:default
details: https://hg.tryton.org/modules/web_user?cmd=changeset&node=a325fe495c4a
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg             |   3 +++
 __init__.py            |   5 ++---
 ir.py                  |   2 +-
 party.py               |   2 +-
 setup.py               |   3 ++-
 tests/test_web_user.py |  11 +++++------
 user.py                |  13 ++++++-------
 7 files changed, 20 insertions(+), 19 deletions(-)

diffs (110 lines):

diff -r 755b79bdfb2e -r a325fe495c4a .isort.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.isort.cfg        Sat Dec 11 17:58:45 2021 +0100
@@ -0,0 +1,3 @@
+[settings]
+multi_line_output=4
+known_first_party=trytond
diff -r 755b79bdfb2e -r a325fe495c4a __init__.py
--- a/__init__.py       Mon Nov 01 17:04:53 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:45 2021 +0100
@@ -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():
diff -r 755b79bdfb2e -r a325fe495c4a ir.py
--- a/ir.py     Mon Nov 01 17:04:53 2021 +0100
+++ b/ir.py     Sat Dec 11 17:58:45 2021 +0100
@@ -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
 
 
diff -r 755b79bdfb2e -r a325fe495c4a party.py
--- a/party.py  Mon Nov 01 17:04:53 2021 +0100
+++ b/party.py  Sat Dec 11 17:58:45 2021 +0100
@@ -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):
diff -r 755b79bdfb2e -r a325fe495c4a setup.py
--- a/setup.py  Mon Nov 01 17:04:53 2021 +0100
+++ b/setup.py  Sat Dec 11 17:58:45 2021 +0100
@@ -6,7 +6,8 @@
 import os
 import re
 from configparser import ConfigParser
-from setuptools import setup, find_packages
+
+from setuptools import find_packages, setup
 
 
 def read(fname):
diff -r 755b79bdfb2e -r a325fe495c4a tests/test_web_user.py
--- a/tests/test_web_user.py    Mon Nov 01 17:04:53 2021 +0100
+++ b/tests/test_web_user.py    Sat Dec 11 17:58:45 2021 +0100
@@ -2,16 +2,15 @@
 # this repository contains the full copyright notices and license terms.
 
 import unittest
-
-from unittest.mock import patch, ANY
+from unittest.mock import ANY, patch
 
-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'
diff -r 755b79bdfb2e -r a325fe495c4a user.py
--- a/user.py   Mon Nov 01 17:04:53 2021 +0100
+++ b/user.py   Sat Dec 11 17:58:45 2021 +0100
@@ -25,18 +25,17 @@
 
 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__)
 

Reply via email to