Skip to content

Commit cc70650

Browse files
committed
lint format code
1 parent 7e8033d commit cc70650

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

stac_fastapi/pgstac/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ async def _search_base( # noqa: C901
254254
search_request.conf = search_request.conf or {}
255255
search_request.conf["nohydrate"] = settings.use_api_hydrate
256256

257-
search_request_json = search_request.model_dump(
258-
exclude_none=True, by_alias=True
259-
)
257+
search_request_json = search_request.model_dump(exclude_none=True, by_alias=True)
260258
search_request_json = self._clean_search_args({}, **search_request_json)
261259
search_request_json = orjson.dumps(search_request_json)
262260

tests/api/test_api.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,10 @@ async def test_wrapped_function(load_test_data, database) -> None:
707707

708708
T = TypeVar("T")
709709

710-
def wrap() -> (
711-
Callable[
712-
[Callable[..., Coroutine[Any, Any, T]]],
713-
Callable[..., Coroutine[Any, Any, T]],
714-
]
715-
):
710+
def wrap() -> Callable[
711+
[Callable[..., Coroutine[Any, Any, T]]],
712+
Callable[..., Coroutine[Any, Any, T]],
713+
]:
716714
def decorator(
717715
fn: Callable[..., Coroutine[Any, Any, T]],
718716
) -> Callable[..., Coroutine[Any, Any, T]]:

tests/api/test_links_with_root_path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ async def app_with_root_path(database, monkeypatch):
3232
from stac_fastapi.pgstac.app import app, with_transactions
3333

3434
# Ensure the app's root_path is configured as expected
35-
assert (
36-
app.root_path == ROOT_PATH
37-
), f"app_with_root_path fixture: app.root_path is '{app.root_path}', expected '{ROOT_PATH}'"
35+
assert app.root_path == ROOT_PATH, (
36+
f"app_with_root_path fixture: app.root_path is '{app.root_path}', expected '{ROOT_PATH}'"
37+
)
3838

3939
await connect_to_db(app, add_write_connection_pool=with_transactions)
4040
yield app

0 commit comments

Comments
 (0)