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

        issue10928
diffstat:

 .isort.cfg              |  3 +++
 __init__.py             |  5 +----
 line.py                 |  8 ++++----
 routes.py               |  4 ++--
 setup.py                |  3 ++-
 tests/test_timesheet.py |  4 ++--
 work.py                 |  6 +++---
 7 files changed, 17 insertions(+), 16 deletions(-)

diffs (105 lines):

diff -r 2b4af4f68d84 -r 3407013dcf8c .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 2b4af4f68d84 -r 3407013dcf8c __init__.py
--- a/__init__.py       Mon Nov 01 17:09:02 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:45 2021 +0100
@@ -2,10 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 from trytond.pool import Pool
 
-from . import work
-from . import line
-from . import user
-from . import routes
+from . import line, routes, user, work
 
 __all__ = ['register', 'routes']
 
diff -r 2b4af4f68d84 -r 3407013dcf8c line.py
--- a/line.py   Mon Nov 01 17:09:02 2021 +0100
+++ b/line.py   Sat Dec 11 17:58:45 2021 +0100
@@ -8,11 +8,11 @@
 from sql.functions import Extract
 
 from trytond.i18n import gettext
-from trytond.model import ModelView, ModelSQL, fields, Unique
-from trytond.wizard import Wizard, StateView, StateAction, Button
-from trytond.pyson import Eval, PYSONEncoder, Date
+from trytond.model import ModelSQL, ModelView, Unique, fields
+from trytond.pool import Pool
+from trytond.pyson import Date, Eval, PYSONEncoder
 from trytond.transaction import Transaction
-from trytond.pool import Pool
+from trytond.wizard import Button, StateAction, StateView, Wizard
 
 from .exceptions import DurationValidationError
 
diff -r 2b4af4f68d84 -r 3407013dcf8c routes.py
--- a/routes.py Mon Nov 01 17:09:02 2021 +0100
+++ b/routes.py Sat Dec 11 17:58:45 2021 +0100
@@ -5,10 +5,10 @@
 from werkzeug.exceptions import abort
 from werkzeug.wrappers import Response
 
+from trytond.protocols.wrappers import (
+    allow_null_origin, user_application, with_pool, with_transaction)
 from trytond.transaction import Transaction
 from trytond.wsgi import app
-from trytond.protocols.wrappers import (
-    with_pool, with_transaction, user_application, allow_null_origin)
 
 timesheet_application = user_application('timesheet')
 
diff -r 2b4af4f68d84 -r 3407013dcf8c setup.py
--- a/setup.py  Mon Nov 01 17:09:02 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, slice=None):
diff -r 2b4af4f68d84 -r 3407013dcf8c tests/test_timesheet.py
--- a/tests/test_timesheet.py   Mon Nov 01 17:09:02 2021 +0100
+++ b/tests/test_timesheet.py   Sat Dec 11 17:58:45 2021 +0100
@@ -1,11 +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 trytond.tests.test_tryton
+from trytond.modules.company.tests import CompanyTestMixin
 from trytond.tests.test_tryton import ModuleTestCase
 
-from trytond.modules.company.tests import CompanyTestMixin
-
 
 class TimesheetTestCase(CompanyTestMixin, ModuleTestCase):
     'Test Timesheet module'
diff -r 2b4af4f68d84 -r 3407013dcf8c work.py
--- a/work.py   Mon Nov 01 17:09:02 2021 +0100
+++ b/work.py   Sat Dec 11 17:58:45 2021 +0100
@@ -7,11 +7,11 @@
 from sql.aggregate import Sum
 
 from trytond.i18n import gettext
-from trytond.model import ModelView, ModelSQL, ModelStorage, fields, Unique
+from trytond.model import ModelSQL, ModelStorage, ModelView, Unique, fields
+from trytond.pool import Pool
 from trytond.pyson import Bool, Eval, If
+from trytond.tools import grouped_slice, reduce_ids
 from trytond.transaction import Transaction
-from trytond.pool import Pool
-from trytond.tools import reduce_ids, grouped_slice
 
 from .exceptions import CompanyValidationError
 

Reply via email to