changeset 5256b2c0889d in proteus:default
details: https://hg.tryton.org/proteus?cmd=changeset&node=5256b2c0889d
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                   |  3 +++
 proteus/__init__.py          |  2 +-
 proteus/config.py            |  2 +-
 proteus/pyson.py             |  5 +++--
 proteus/tests/__init__.py    |  2 +-
 proteus/tests/common.py      |  3 +--
 proteus/tests/test_config.py |  1 +
 proteus/tests/test_model.py  |  1 +
 proteus/tests/test_report.py |  4 +++-
 proteus/tests/test_wizard.py |  3 ++-
 setup.py                     |  3 ++-
 11 files changed, 19 insertions(+), 10 deletions(-)

diffs (145 lines):

diff -r 30ee16e16e59 -r 5256b2c0889d .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 30ee16e16e59 -r 5256b2c0889d proteus/__init__.py
--- a/proteus/__init__.py       Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/__init__.py       Sat Dec 11 17:58:45 2021 +0100
@@ -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
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/config.py
--- a/proteus/config.py Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/config.py Sat Dec 11 17:58:45 2021 +0100
@@ -10,8 +10,8 @@
 import threading
 import urllib.parse
 import xmlrpc.client
+from contextlib import contextmanager
 from decimal import Decimal
-from contextlib import contextmanager
 
 __all__ = ['set_trytond', 'set_xmlrpc', 'get_config']
 
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/pyson.py
--- a/proteus/pyson.py  Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/pyson.py  Sat Dec 11 17:58:45 2021 +0100
@@ -1,10 +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 datetime
 import json
-import datetime
 from decimal import Decimal
+from functools import reduce
+
 from dateutil.relativedelta import relativedelta
-from functools import reduce
 
 
 class PYSON(object):
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/__init__.py
--- a/proteus/tests/__init__.py Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/__init__.py Sat Dec 11 17:58:45 2021 +0100
@@ -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
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/common.py
--- a/proteus/tests/common.py   Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/common.py   Sat Dec 11 17:58:45 2021 +0100
@@ -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):
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/test_config.py
--- a/proteus/tests/test_config.py      Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/test_config.py      Sat Dec 11 17:58:45 2021 +0100
@@ -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
 
 
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/test_model.py
--- a/proteus/tests/test_model.py       Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/test_model.py       Sat Dec 11 17:58:45 2021 +0100
@@ -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
 
 
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/test_report.py
--- a/proteus/tests/test_report.py      Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/test_report.py      Sat Dec 11 17:58:45 2021 +0100
@@ -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
 
 
diff -r 30ee16e16e59 -r 5256b2c0889d proteus/tests/test_wizard.py
--- a/proteus/tests/test_wizard.py      Mon Nov 01 16:58:25 2021 +0100
+++ b/proteus/tests/test_wizard.py      Sat Dec 11 17:58:45 2021 +0100
@@ -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
 
 
diff -r 30ee16e16e59 -r 5256b2c0889d setup.py
--- a/setup.py  Mon Nov 01 16:58:25 2021 +0100
+++ b/setup.py  Sat Dec 11 17:58:45 2021 +0100
@@ -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):

Reply via email to