Skip to content

Commit

Permalink
HOTFIX - Update Dependencies (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan authored Jan 31, 2025
1 parent b31aec4 commit 4c0d98f
Show file tree
Hide file tree
Showing 6 changed files with 932 additions and 909 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ repos:
- id: talisman-commit
entry: cmd --githook pre-commit
- repo: https://github.com/PyCQA/bandit
rev: "1.8.0"
rev: "1.8.2"
hooks:
- id: bandit
args: [-c, pyproject.toml, -r, -l]
additional_dependencies: ["bandit[toml]"]
exclude: 'tests/'
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.8.4"
rev: "v0.9.4"
hooks:
# Run the linter.
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def simple_route() -> dict[str, str]:


@app.post('/db/test', status_code=status.HTTP_201_CREATED, dependencies=[Depends(JWTBearer())])
async def test_db_create(
async def db_create_test(
*,
data: str = 'hello',
db_session: Annotated[async_scoped_session[AsyncSession], Depends(get_write_session_with_depends)],
Expand Down Expand Up @@ -220,7 +220,7 @@ async def fetch_notifications(session: AsyncSession, year_list: List[int]) -> Li


@app.get('/db/test', status_code=status.HTTP_200_OK, dependencies=[Depends(JWTBearer())])
async def test_db_read(
async def db_read_test(
db_session: Annotated[async_scoped_session[AsyncSession], Depends(get_read_session_with_depends)],
years: str | None = Query(
default=None, description='Comma-separated years to filter notifications (e.g., 2024,2025)'
Expand Down
Loading

0 comments on commit 4c0d98f

Please sign in to comment.