changeset 54806535b1d7 in trytond-gis:default
details: https://hg.tryton.org/trytond-gis?cmd=changeset&node=54806535b1d7
description:
        Follow isort formatting

        issue10928
diffstat:

 .isort.cfg                       |  3 +++
 setup.py                         |  3 ++-
 trytond_gis/fields.py            |  5 +++--
 trytond_gis/postgis/__init__.py  |  1 +
 trytond_gis/postgis/database.py  |  5 ++---
 trytond_gis/postgis/table.py     |  3 +--
 trytond_gis/tests/__init__.py    |  1 +
 trytond_gis/tests/test_fields.py |  1 +
 8 files changed, 14 insertions(+), 8 deletions(-)

diffs (104 lines):

diff -r b240352b3f01 -r 54806535b1d7 .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 b240352b3f01 -r 54806535b1d7 setup.py
--- a/setup.py  Mon Nov 01 16:59:46 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):
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/fields.py
--- a/trytond_gis/fields.py     Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/fields.py     Sat Dec 11 17:58:45 2021 +0100
@@ -3,11 +3,12 @@
 
 from sql import Null
 from sql.operators import Not
+
 from trytond import backend
 from trytond.model import fields
 from trytond.model.fields.field import SQL_OPERATORS
-
-from trytond_gis import _GeoJSON, sql as geo_sql
+from trytond_gis import _GeoJSON
+from trytond_gis import sql as geo_sql
 
 GEOGRAPHIC_OPERATORS = {
     '=': geo_sql.ST_Equals,
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/postgis/__init__.py
--- a/trytond_gis/postgis/__init__.py   Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/postgis/__init__.py   Sat Dec 11 17:58:45 2021 +0100
@@ -2,6 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 from trytond.backend.postgresql.database import (
     DatabaseIntegrityError, DatabaseOperationalError)
+
 from .database import Database
 from .table import TableHandler
 
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/postgis/database.py
--- a/trytond_gis/postgis/database.py   Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/postgis/database.py   Sat Dec 11 17:58:45 2021 +0100
@@ -3,12 +3,11 @@
 import binascii
 
 from geomet import wkb
-from psycopg2.extensions import (register_adapter, new_type, register_type,
-    Binary)
+from psycopg2.extensions import (
+    Binary, new_type, register_adapter, register_type)
 
 from trytond.backend.postgresql.database import Database as PGDatabase
 from trytond.config import parse_uri
-
 from trytond_gis import _GeoJSON
 
 
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/postgis/table.py
--- a/trytond_gis/postgis/table.py      Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/postgis/table.py      Sat Dec 11 17:58:45 2021 +0100
@@ -2,10 +2,9 @@
 # this repository contains the full copyright notices and license terms.
 import logging
 
+from trytond.backend.postgresql.table import TableHandler as PGTableHandler
 from trytond.config import config
 from trytond.transaction import Transaction
-from trytond.backend.postgresql.table import TableHandler as PGTableHandler
-
 from trytond_gis.const import GIS_SQL_TYPE_RE, WGS_84
 
 logger = logging.getLogger(__name__)
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/tests/__init__.py
--- a/trytond_gis/tests/__init__.py     Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/tests/__init__.py     Sat Dec 11 17:58:45 2021 +0100
@@ -2,6 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 
 from trytond.pool import Pool
+
 from . import gis
 
 
diff -r b240352b3f01 -r 54806535b1d7 trytond_gis/tests/test_fields.py
--- a/trytond_gis/tests/test_fields.py  Mon Nov 01 16:59:46 2021 +0100
+++ b/trytond_gis/tests/test_fields.py  Sat Dec 11 17:58:45 2021 +0100
@@ -1,6 +1,7 @@
 # This file is part of trytond_gis.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 import unittest
+
 from sql import Null
 
 from trytond.pool import Pool

Reply via email to