changeset 94bd0fd21b82 in modules/web_shortener:default
details: 
https://hg.tryton.org/modules/web_shortener?cmd=changeset&node=94bd0fd21b82
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                  |  3 +++
 __init__.py                 |  3 +--
 routes.py                   |  2 +-
 setup.py                    |  3 ++-
 tests/test_web_shortener.py |  6 +++---
 web.py                      |  6 +++---
 6 files changed, 13 insertions(+), 10 deletions(-)

diffs (84 lines):

diff -r 01e1529e9eb3 -r 94bd0fd21b82 .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 01e1529e9eb3 -r 94bd0fd21b82 __init__.py
--- a/__init__.py       Mon Nov 01 17:01:35 2021 +0100
+++ b/__init__.py       Sat Dec 11 17:58:45 2021 +0100
@@ -3,8 +3,7 @@
 
 from trytond.pool import Pool
 
-from . import web
-from . import routes
+from . import routes, web
 
 __all__ = ['register', 'routes']
 
diff -r 01e1529e9eb3 -r 94bd0fd21b82 routes.py
--- a/routes.py Mon Nov 01 17:01:35 2021 +0100
+++ b/routes.py Sat Dec 11 17:58:45 2021 +0100
@@ -6,8 +6,8 @@
 except ImportError:
     from http import client as HTTPStatus
 
+from werkzeug.exceptions import abort
 from werkzeug.utils import redirect
-from werkzeug.exceptions import abort
 
 from trytond.protocols.wrappers import with_pool, with_transaction
 from trytond.wsgi import app
diff -r 01e1529e9eb3 -r 94bd0fd21b82 setup.py
--- a/setup.py  Mon Nov 01 17:01:35 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 01e1529e9eb3 -r 94bd0fd21b82 tests/test_web_shortener.py
--- a/tests/test_web_shortener.py       Mon Nov 01 17:01:35 2021 +0100
+++ b/tests/test_web_shortener.py       Sat Dec 11 17:58:45 2021 +0100
@@ -5,10 +5,10 @@
 import sys
 import unittest
 
-
-from trytond.tests.test_tryton import ModuleTestCase, with_transaction
+from trytond.pool import Pool
+from trytond.tests.test_tryton import ModuleTestCase
 from trytond.tests.test_tryton import suite as test_suite
-from trytond.pool import Pool
+from trytond.tests.test_tryton import with_transaction
 
 
 class WebShortenerTestCase(ModuleTestCase):
diff -r 01e1529e9eb3 -r 94bd0fd21b82 web.py
--- a/web.py    Mon Nov 01 17:01:35 2021 +0100
+++ b/web.py    Sat Dec 11 17:58:45 2021 +0100
@@ -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 logging
 import string
-import logging
-from urllib.parse import urljoin, quote
+from urllib.parse import quote, urljoin
 
 from sql.aggregate import Count
 
 from trytond.config import config
-from trytond.model import fields, ModelSQL, ModelView
+from trytond.model import ModelSQL, ModelView, fields
 from trytond.pool import Pool
 from trytond.tools import grouped_slice, reduce_ids
 from trytond.transaction import Transaction

Reply via email to