changeset 41ae6b337d6d in modules/user_role:default
details: https://hg.tryton.org/modules/user_role?cmd=changeset&node=41ae6b337d6d
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 4 ++--
res.py | 4 ++--
setup.py | 3 ++-
tests/test_user_role.py | 8 +++-----
5 files changed, 12 insertions(+), 10 deletions(-)
diffs (69 lines):
diff -r fcdfd8fb5a5d -r 41ae6b337d6d .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 fcdfd8fb5a5d -r 41ae6b337d6d __init__.py
--- a/__init__.py Mon Nov 01 17:03:01 2021 +0100
+++ b/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,8 +2,8 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
-from . import res
-from . import ir
+
+from . import ir, res
__all__ = ['register']
diff -r fcdfd8fb5a5d -r 41ae6b337d6d res.py
--- a/res.py Mon Nov 01 17:03:01 2021 +0100
+++ b/res.py Sat Dec 11 17:58:45 2021 +0100
@@ -3,8 +3,8 @@
import datetime
from trytond.model import ModelSQL, ModelView, fields
-from trytond.pool import PoolMeta, Pool
-from trytond.pyson import Eval, If, Bool
+from trytond.pool import Pool, PoolMeta
+from trytond.pyson import Bool, Eval, If
class Role(ModelSQL, ModelView):
diff -r fcdfd8fb5a5d -r 41ae6b337d6d setup.py
--- a/setup.py Mon Nov 01 17:03:01 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 fcdfd8fb5a5d -r 41ae6b337d6d tests/test_user_role.py
--- a/tests/test_user_role.py Mon Nov 01 17:03:01 2021 +0100
+++ b/tests/test_user_role.py Sat Dec 11 17:58:45 2021 +0100
@@ -1,14 +1,12 @@
# 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 doctest
import unittest
-import doctest
-
-from trytond.tests.test_tryton import ModuleTestCase
+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 doctest_teardown
-from trytond.tests.test_tryton import doctest_checker
class UserRoleTestCase(ModuleTestCase):