changeset 3479395babbb in modules/timesheet_cost:default
details:
https://hg.tryton.org/modules/timesheet_cost?cmd=changeset&node=3479395babbb
description:
Follow isort formatting
issue10928
diffstat:
.isort.cfg | 3 +++
__init__.py | 4 ++--
company.py | 7 ++++---
setup.py | 3 ++-
tests/test_timesheet_cost.py | 9 ++++-----
timesheet.py | 4 ++--
6 files changed, 17 insertions(+), 13 deletions(-)
diffs (91 lines):
diff -r 082fe43a4384 -r 3479395babbb .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 082fe43a4384 -r 3479395babbb __init__.py
--- a/__init__.py Mon Nov 01 17:13:06 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 company
-from . import timesheet
+
+from . import company, timesheet
def register():
diff -r 082fe43a4384 -r 3479395babbb company.py
--- a/company.py Mon Nov 01 17:13:06 2021 +0100
+++ b/company.py Sat Dec 11 17:58:45 2021 +0100
@@ -1,11 +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.
from decimal import Decimal
-from trytond.model import ModelView, ModelSQL, fields, Unique
+
from trytond.cache import Cache
+from trytond.config import config
+from trytond.model import ModelSQL, ModelView, Unique, fields
+from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
-from trytond.pool import Pool, PoolMeta
-from trytond.config import config
__all__ = ['price_digits']
diff -r 082fe43a4384 -r 3479395babbb setup.py
--- a/setup.py Mon Nov 01 17:13:06 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 082fe43a4384 -r 3479395babbb tests/test_timesheet_cost.py
--- a/tests/test_timesheet_cost.py Mon Nov 01 17:13:06 2021 +0100
+++ b/tests/test_timesheet_cost.py Sat Dec 11 17:58:45 2021 +0100
@@ -1,15 +1,14 @@
# 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 datetime
import unittest
-import datetime
from decimal import Decimal
import trytond.tests.test_tryton
-from trytond.tests.test_tryton import ModuleTestCase, with_transaction
+from trytond.modules.company.tests import (
+ CompanyTestMixin, create_company, create_employee, set_company)
from trytond.pool import Pool
-
-from trytond.modules.company.tests import (
- create_company, set_company, create_employee, CompanyTestMixin)
+from trytond.tests.test_tryton import ModuleTestCase, with_transaction
class TimesheetCostTestCase(CompanyTestMixin, ModuleTestCase):
diff -r 082fe43a4384 -r 3479395babbb timesheet.py
--- a/timesheet.py Mon Nov 01 17:13:06 2021 +0100
+++ b/timesheet.py Sat Dec 11 17:58:45 2021 +0100
@@ -2,9 +2,9 @@
# this repository contains the full copyright notices and license terms.
from sql import Null
-from trytond.transaction import Transaction
+from trytond.model import fields
from trytond.pool import Pool, PoolMeta
-from trytond.model import fields
+from trytond.transaction import Transaction
from .company import price_digits