Skip to content

Commit

Permalink
Merge pull request #29 from xyvora/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sanders41 authored Dec 24, 2024
2 parents 9fc43ca + 68699ae commit db7e36f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions backend/app/api/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit db7e36f

Please sign in to comment.