From 40d85d280e88a2e717ceed7779f78804c51fa602 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:10:09 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.8.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.8.4) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe88ee7..067e7a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,11 +9,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.0 hooks: - id: mypy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.8.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 68699aeafc49b8098b0ae4a49c0a2a52f3045bc0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:10:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- backend/app/api/deps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/deps.py b/backend/app/api/deps.py index 0440e53..b12280d 100644 --- a/backend/app/api/deps.py +++ b/backend/app/api/deps.py @@ -28,7 +28,7 @@ TokenDep = Annotated[str, Depends(reusable_oauth2)] -async def get_db_conn() -> AsyncGenerator[asyncpg.Connection, None]: +async def get_db_conn() -> AsyncGenerator[asyncpg.Connection]: if db.pool is None: logger.error("No database pool created") raise HTTPException( @@ -41,7 +41,7 @@ async def get_db_conn() -> AsyncGenerator[asyncpg.Connection, None]: DbConn = Annotated[asyncpg.Connection, Depends(get_db_conn)] -async def get_cache_client() -> AsyncGenerator[valkey.Valkey, None]: +async def get_cache_client() -> AsyncGenerator[valkey.Valkey]: if cache.client is None: logger.error("No cache client created") raise HTTPException(