Skip to content

Commit

Permalink
IP-241 - Implement ruff import ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlittlejohns committed Apr 17, 2024
1 parent d3ac389 commit 07f98e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
rev: v0.3.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
args: ["--fix", "--show-fixes", "--select", "I"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions tests/test_adapter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
""" End-to-end tests of the Harmony Regridding service. """

from os.path import exists, join as path_join
from os.path import exists
from os.path import join as path_join
from shutil import rmtree
from tempfile import mkdtemp
from unittest import TestCase
from unittest.mock import patch, ANY
from unittest.mock import ANY, patch

from harmony.message import Message
from harmony.util import config
Expand All @@ -16,8 +17,7 @@
InvalidTargetCRS,
InvalidTargetGrid,
)

from tests.utilities import create_stac, Granule
from tests.utilities import Granule, create_stac


class TestAdapter(TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_adapter.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from unittest import TestCase

from harmony.message import Message
from harmony.util import config, HarmonyException
from harmony.util import HarmonyException, config

from harmony_regridding_service.adapter import RegriddingServiceAdapter
from harmony_regridding_service.exceptions import (
InvalidInterpolationMethod,
InvalidTargetCRS,
InvalidTargetGrid,
)
from tests.utilities import create_stac, Granule
from tests.utilities import Granule, create_stac


class TestAdapter(TestCase):
Expand Down
1 change: 0 additions & 1 deletion tests/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from harmony.util import bbox_to_geometry
from pystac import Asset, Catalog, Item


Granule = namedtuple('Granule', ['url', 'media_type', 'roles'])


Expand Down

0 comments on commit 07f98e0

Please sign in to comment.