Follow isort formatting

issue10928
This commit is contained in:
Cédric Krier committed 2021-12-11 17:58:45 +01:00
1 parent 43772d4969
commit 8676b6b309
11 files changed
+19 -10

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
[settings]
multi_line_output=4
known_first_party=trytond
+1 -1
View File
@@ -3,9 +3,9 @@
'''
A library to access Tryton's models like a client.
'''
import threading
import datetime
import functools
import threading
from decimal import Decimal
import proteus.config
+1 -1
View File
@@ -10,8 +10,8 @@ import os
import threading
import urllib.parse
import xmlrpc.client
from decimal import Decimal
from contextlib import contextmanager
from decimal import Decimal
__all__ = ['set_trytond', 'set_xmlrpc', 'get_config']
+3 -2
View File
@@ -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.
import json
import datetime
import json
from decimal import Decimal
from dateutil.relativedelta import relativedelta
from functools import reduce
from dateutil.relativedelta import relativedelta
class PYSON(object):
+1 -1
View File
@@ -1,9 +1,9 @@
# 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 os
import sys
import unittest
import doctest
import proteus
import proteus.config
+1 -2
View File
@@ -2,9 +2,8 @@
# this repository contains the full copyright notices and license terms.
from unittest import TestCase
from trytond.tests.test_tryton import db_exist, create_db
from proteus import config
from trytond.tests.test_tryton import create_db, db_exist
class ProteusTestCase(TestCase):
+1
View File
@@ -1,6 +1,7 @@
# 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 proteus.config
from .common import ProteusTestCase
+1
View File
@@ -1,6 +1,7 @@
# 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 proteus import Model
from .common import ProteusTestCase
+3 -1
View File
@@ -1,12 +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 unittest
try:
import pydot
except ImportError:
pydot = None
from proteus import Report, Model
from proteus import Model, Report
from .common import ProteusTestCase
+2 -1
View File
@@ -1,6 +1,7 @@
# 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 proteus import Wizard, Model
from proteus import Model, Wizard
from .common import ProteusTestCase
+2 -1
View File
@@ -4,7 +4,8 @@
import io
import os
import re
from setuptools import setup, find_packages
from setuptools import find_packages, setup
def read(fname):