Skip to content

Commit

Permalink
lint: isort via ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed May 12, 2023
1 parent 3e1ee88 commit 993decc
Show file tree
Hide file tree
Showing 37 changed files with 12 additions and 38 deletions.
1 change: 0 additions & 1 deletion src/stactools/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Union

import click

from stactools.cli import registry


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import click
from pystac import Catalog, Item, read_file

from stactools.core import add_item


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/add_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import click
import pystac
import pystac.utils

from stactools.core import add_asset_to_item


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/add_raster.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import click
import pystac

from stactools.core import add_raster_to_item


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import click
import pystac
from pystac.utils import make_absolute_href

from stactools.core.copy import copy_catalog, move_all_assets


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys

import click

from stactools.core import create


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/layout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import click
import pystac

from stactools.core import layout_catalog


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import click
import pystac

from stactools.core import merge_all_items


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/update_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import click
from click import Command, Group
from pystac import Item

from stactools.core.utils import raster_footprint


Expand Down
1 change: 0 additions & 1 deletion src/stactools/cli/commands/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from click import echo
from click.core import Command, Group
from pystac.version import get_stac_version

from stactools.core import __version__


Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from pystac import Catalog, Collection, Item
from pystac.layout import BestPracticesLayoutStrategy

from stactools.core.copy import move_assets as do_move_assets


Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/add_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from pystac import Asset, Item
from pystac.utils import is_absolute_href, make_relative_href

from stactools.core.copy import move_asset_file_to_item

logger = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions src/stactools/core/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

import rasterio
import shapely.geometry
import stactools.core.projection
from pystac import Asset, Item
from pystac.extensions.projection import ProjectionExtension

import stactools.core.projection

from .io import ReadHrefModifier


Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import fsspec
from pystac.link import HREF
from pystac.stac_io import StacIO

from stactools.core import utils

ReadHrefModifier = Callable[[str], str]
Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from pystac import Catalog
from pystac.layout import TemplateLayoutStrategy

from stactools.core import move_all_assets


Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from pystac.layout import BestPracticesLayoutStrategy
from pystac.utils import is_absolute_href, make_relative_href
from shapely.geometry import mapping, shape

from stactools.core.copy import copy_catalog, move_asset_file_to_item
from stactools.core.copy import move_assets as do_move_assets

Expand Down
1 change: 0 additions & 1 deletion src/stactools/core/utils/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import rasterio
import rasterio.shutil
from rasterio.errors import DriverRegistrationError

from stactools.core import utils

DEFAULT_PROFILE = {
Expand Down
1 change: 0 additions & 1 deletion src/stactools/testing/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from tempfile import TemporaryDirectory

import click

from stactools.core.utils.subprocess import call

logger = logging.getLogger(__name__)
Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_add.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from tempfile import TemporaryDirectory

import pystac

from stactools.cli.commands.add import create_add_command
from stactools.core import move_all_assets
from stactools.testing import CliTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_add_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import pystac.utils
from click import Command, Group
from pystac import Item

from stactools.cli.commands.add_asset import create_add_asset_command
from stactools.testing.cli_test import CliTestCase

from tests import test_data
from tests.utils import create_temp_copy

Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_add_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pystac
from pystac.utils import make_absolute_href

from stactools.cli.commands.add_raster import create_add_raster_command
from stactools.core import move_all_assets
from stactools.testing import CliTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import pystac
from pystac.utils import is_absolute_href, make_absolute_href

from stactools.cli.commands.copy import create_copy_command, create_move_assets_command
from stactools.testing import CliTestCase

Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Callable, List

from click import Command, Group

from stactools.cli.commands.info import create_describe_command, create_info_command
from stactools.testing.cli_test import CliTestCase

Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_lint.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Callable, List

from click import Command, Group

from stactools.cli.commands.lint import create_lint_command
from stactools.testing import CliTestCase

from tests import test_data


Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from tempfile import TemporaryDirectory

import pystac

from stactools.cli.commands.merge import create_merge_command
from stactools.core import move_all_assets
from stactools.testing import CliTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_summary.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Callable, List

from click import Command, Group

from stactools.cli.commands.summary import create_summary_command
from stactools.testing.cli_test import CliTestCase

from tests import test_data


Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_update_extent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from click.testing import CliRunner

from stactools.cli.cli import cli

from tests import test_data


Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_update_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from typing import Callable, List

from click import Command, Group

from stactools.cli.commands.update_geometry import create_update_geometry_command
from stactools.testing.cli_test import CliTestCase

from tests import test_data


Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_validate.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Callable, List

from click import Command, Group

from stactools.cli.commands.validate import create_validate_command
from stactools.testing.cli_test import CliTestCase

from tests import test_data


Expand Down
1 change: 0 additions & 1 deletion tests/cli/commands/test_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pystac
from pystac.version import get_stac_version

from stactools.cli.commands.version import create_version_command
from stactools.core import __version__
from stactools.core.utils.subprocess import call
Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_add_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from unittest import TestCase

from pystac import Asset, Item

from stactools.core import add_asset_to_item

from tests import test_data
from tests.utils import create_temp_copy

Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from unittest import TestCase

from pystac.extensions.projection import ProjectionExtension

from stactools.core import create

from tests import test_data


Expand Down
1 change: 0 additions & 1 deletion tests/core/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from unittest.mock import create_autospec, patch

import pystac

import stactools.core.io
from stactools.core import use_fsspec

Expand Down
1 change: 0 additions & 1 deletion tests/core/utils/test_antimeridian.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import shapely.geometry
from pystac import Item
from shapely.geometry import MultiPolygon, Polygon

from stactools.core.utils import antimeridian


Expand Down
2 changes: 1 addition & 1 deletion tests/core/utils/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from tempfile import TemporaryDirectory

import rasterio

from stactools.core import utils
from stactools.core.utils.convert import cogify, cogify_subdatasets

from tests import test_data


Expand Down
2 changes: 1 addition & 1 deletion tests/core/utils/test_raster_footprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from shapely.geometry import shape
from shapely.geometry.multipolygon import MultiPolygon
from shapely.geometry.polygon import Polygon, orient

from stactools.core import use_fsspec
from stactools.core.utils.raster_footprint import (
data_footprint,
Expand All @@ -12,6 +11,7 @@
densify_reproject_simplify,
update_geometry_from_asset_footprint,
)

from tests import test_data


Expand Down
2 changes: 1 addition & 1 deletion tests/core/utils/test_round.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any, Iterable, Iterator

from pystac import Collection, Item

from stactools.core.utils.round import recursive_round, round_coordinates

from tests import test_data


Expand Down

0 comments on commit 993decc

Please sign in to comment.