From 88e88a6a2723e8e1797f43263dfd041b5f992c6c Mon Sep 17 00:00:00 2001 From: philiporlando Date: Tue, 23 Jul 2024 14:53:49 -0700 Subject: [PATCH] use ruff formatter, organize imports --- fgdb_to_gpkg/__init__.py | 4 ++-- fgdb_to_gpkg/fgdb_to_gpkg.py | 7 ++++--- tests/test_fgdb_to_gpkg.py | 18 ++++++++++-------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/fgdb_to_gpkg/__init__.py b/fgdb_to_gpkg/__init__.py index 23e20cb..a97e797 100644 --- a/fgdb_to_gpkg/__init__.py +++ b/fgdb_to_gpkg/__init__.py @@ -1,8 +1,8 @@ from .fgdb_to_gpkg import ( - remove_gpkg_if_overwrite, - get_layer_lists, convert_layer, fgdb_to_gpkg, + get_layer_lists, + remove_gpkg_if_overwrite, ) __all__ = [ diff --git a/fgdb_to_gpkg/fgdb_to_gpkg.py b/fgdb_to_gpkg/fgdb_to_gpkg.py index 58f2b69..92ee0e3 100644 --- a/fgdb_to_gpkg/fgdb_to_gpkg.py +++ b/fgdb_to_gpkg/fgdb_to_gpkg.py @@ -1,11 +1,12 @@ import argparse -import geopandas as gpd -import fiona import os import warnings -from tqdm import tqdm from typing import List, Tuple +import fiona +import geopandas as gpd +from tqdm import tqdm + def remove_gpkg_if_overwrite(gpkg_path: str, overwrite: bool) -> None: """ diff --git a/tests/test_fgdb_to_gpkg.py b/tests/test_fgdb_to_gpkg.py index 4490005..bff3a48 100644 --- a/tests/test_fgdb_to_gpkg.py +++ b/tests/test_fgdb_to_gpkg.py @@ -1,18 +1,20 @@ -import zipfile -import geodatasets -import pytest -import tempfile import os -import geopandas as gpd +import tempfile import warnings +import zipfile from typing import Literal -from shapely.geometry.polygon import Polygon + +import geodatasets +import geopandas as gpd +import pytest from shapely.geometry.multipolygon import MultiPolygon +from shapely.geometry.polygon import Polygon + from fgdb_to_gpkg import ( - remove_gpkg_if_overwrite, - get_layer_lists, convert_layer, fgdb_to_gpkg, + get_layer_lists, + remove_gpkg_if_overwrite, )