Skip to content

Commit

Permalink
fix: ruff checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Oct 14, 2024
1 parent 53ee846 commit 5fccef5
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/test_blocking.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import json
from pathlib import Path

import stac_asset.blocking
from pystac import Collection, Item, ItemCollection

import stac_asset.blocking
from stac_asset import Config


Expand Down
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
from pathlib import Path

import pytest
import stac_asset._cli
from click.testing import CliRunner
from pystac import Item, ItemCollection

import stac_asset._cli


def test_download_item(tmp_path: Path, item_path: Path) -> None:
runner = CliRunner()
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from stac_asset import Config, ConfigError


Expand Down
1 change: 1 addition & 0 deletions tests/test_earthdata_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

import pytest

from stac_asset import Config, EarthdataClient

pytestmark = [
Expand Down
1 change: 1 addition & 0 deletions tests/test_filesystem_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

import pytest

from stac_asset import FilesystemClient

pytestmark = pytest.mark.asyncio
Expand Down
3 changes: 2 additions & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from pathlib import Path

import pytest
import stac_asset
from pystac import Asset, Collection, Item, ItemCollection
from pytest import MonkeyPatch

import stac_asset
from stac_asset import (
AssetOverwriteError,
Config,
Expand Down
1 change: 1 addition & 0 deletions tests/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from aiohttp_oauth2_client.grant.resource_owner_password_credentials import (
ResourceOwnerPasswordCredentialsGrant,
)

from stac_asset import Config, HttpClient

pytestmark = [
Expand Down
1 change: 1 addition & 0 deletions tests/test_planetary_computer_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

import pytest

from stac_asset import Config, PlanetaryComputerClient

pytestmark = [
Expand Down
3 changes: 2 additions & 1 deletion tests/test_s3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

import pystac
import pytest
import stac_asset
from pystac import Item

import stac_asset
from stac_asset import Config, S3Client

pytestmark = [
Expand Down
1 change: 1 addition & 0 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from stac_asset import ContentTypeError, validate


Expand Down

0 comments on commit 5fccef5

Please sign in to comment.