Format everything

This commit is contained in:
Jacob Windsor
2025-02-19 16:25:48 +01:00
parent ed6c49a1b7
commit ecfef9a09d
22 changed files with 115 additions and 62 deletions
+6 -3
View File
@@ -3,7 +3,10 @@ from typing import Annotated
from ..settings import get_settings
from ..repositories.user_repository import UserRepository
async def authenticate(request: Request, user_repository: Annotated[UserRepository, Depends()]) -> bool:
async def authenticate(
request: Request, user_repository: Annotated[UserRepository, Depends()]
) -> bool:
"""
Authenticate the current request.
"""
@@ -11,6 +14,6 @@ async def authenticate(request: Request, user_repository: Annotated[UserReposito
if not mocked_user:
raise Exception("Mock user not found.")
request.state.user = mocked_user
return True
return True