Skip to content

Commit

Permalink
use ruff formatter, organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
philiporlando committed Jul 23, 2024
1 parent 7a55a09 commit 88e88a6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fgdb_to_gpkg/__init__.py
Original file line number Diff line number Diff line change
@@ -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__ = [
Expand Down
7 changes: 4 additions & 3 deletions fgdb_to_gpkg/fgdb_to_gpkg.py
Original file line number Diff line number Diff line change
@@ -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:
"""
Expand Down
18 changes: 10 additions & 8 deletions tests/test_fgdb_to_gpkg.py
Original file line number Diff line number Diff line change
@@ -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,
)


Expand Down

0 comments on commit 88e88a6

Please sign in to comment.