diff --git a/src/fastapi_app/lib/clients/httpx.py b/src/fastapi_app/lib/clients/httpx.py deleted file mode 100644 index 5570d2c..0000000 --- a/src/fastapi_app/lib/clients/httpx.py +++ /dev/null @@ -1,16 +0,0 @@ -import contextlib -import typing - -import httpx - - -@contextlib.asynccontextmanager -async def get_async_http_session( - settings: dict[str, typing.Any] | None = None -) -> typing.AsyncGenerator[httpx.AsyncClient, None]: - """Async http client.""" - if settings is None: - settings = {} - client = httpx.AsyncClient(**settings) # Insert your own settings here - async with client as ac: - yield ac diff --git a/src/fastapi_app/pyproject.toml b/src/fastapi_app/pyproject.toml index 441feb0..54d66d3 100644 --- a/src/fastapi_app/pyproject.toml +++ b/src/fastapi_app/pyproject.toml @@ -129,6 +129,8 @@ ignore = [ "D415", # Type-checkers interpret redundant `as` as exporting an item "PLC0414", + # Permit using alias for 'import' + "PLR0402", # Causes churn and awful looking import blocks for little gain "TCH" ]