From beab2ae547918ff174bca120df9344c131848216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 11 Dec 2021 17:58:43 +0100 Subject: [PATCH] Follow isort formatting issue10928 --- .isort.cfg | 3 +++ __init__.py | 4 ++-- allocation.py | 2 +- setup.py | 3 ++- tests/test_project_plan.py | 4 ++-- work.py | 6 +++--- 6 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 .isort.cfg diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000000..e1c6495da9 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,3 @@ +[settings] +multi_line_output=4 +known_first_party=trytond diff --git a/__init__.py b/__init__.py index 07b5deccb9..2edbec62d9 100644 --- a/__init__.py +++ b/__init__.py @@ -2,8 +2,8 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from . import allocation -from . import work + +from . import allocation, work def register(): diff --git a/allocation.py b/allocation.py index a22df3dd38..c2efd7e766 100644 --- a/allocation.py +++ b/allocation.py @@ -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.model import ModelView, ModelSQL, fields +from trytond.model import ModelSQL, ModelView, fields from trytond.pool import Pool diff --git a/setup.py b/setup.py index 4e7090722c..6b1f202b97 100755 --- a/setup.py +++ b/setup.py @@ -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): diff --git a/tests/test_project_plan.py b/tests/test_project_plan.py index e0acc4d59c..9322bf78a4 100644 --- a/tests/test_project_plan.py +++ b/tests/test_project_plan.py @@ -1,10 +1,10 @@ # 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.tests.test_tryton import ModuleTestCase +import trytond.tests.test_tryton from trytond.modules.company.tests import CompanyTestMixin +from trytond.tests.test_tryton import ModuleTestCase class ProjectPlanTestCase(CompanyTestMixin, ModuleTestCase): diff --git a/work.py b/work.py index 884d6b2df5..48fdfcfcfa 100644 --- a/work.py +++ b/work.py @@ -1,14 +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 -from collections import deque, defaultdict +from collections import defaultdict, deque from functools import reduce from heapq import heappop, heappush from trytond.model import ModelSQL, fields, tree -from trytond.wizard import Wizard, StateTransition -from trytond.pyson import Eval from trytond.pool import Pool, PoolMeta +from trytond.pyson import Eval +from trytond.wizard import StateTransition, Wizard def intfloor(x):