diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 993b4237..c29dbcdc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,15 @@ repos: - repo: https://github.com/psf/black - rev: 24.8.0 # Use the latest stable version of Black + rev: 25.1.0 # Use the latest stable version of Black hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort args: [--profile, black] - repo: https://github.com/hhatto/autopep8 - rev: v2.3.1 # Use the latest stable version of autopep8 + rev: v2.3.2 # Use the latest stable version of autopep8 hooks: - id: autopep8 diff --git a/backend/app/expenses/routes.py b/backend/app/expenses/routes.py index 3277f43c..fe67b101 100644 --- a/backend/app/expenses/routes.py +++ b/backend/app/expenses/routes.py @@ -405,7 +405,7 @@ async def calculate_optimized_settlements( @balance_router.get("/friends-balance", response_model=FriendsBalanceResponse) async def get_cross_group_friend_balances( - current_user: Dict[str, Any] = Depends(get_current_user) + current_user: Dict[str, Any] = Depends(get_current_user), ): """Retrieve the current user's aggregated balances with all friends""" try: @@ -418,7 +418,7 @@ async def get_cross_group_friend_balances( @balance_router.get("/balance-summary", response_model=BalanceSummaryResponse) async def get_overall_user_balance_summary( - current_user: Dict[str, Any] = Depends(get_current_user) + current_user: Dict[str, Any] = Depends(get_current_user), ): """Retrieve an overall balance summary for the current user""" try: diff --git a/backend/app/user/routes.py b/backend/app/user/routes.py index 1c29e291..1f04384e 100644 --- a/backend/app/user/routes.py +++ b/backend/app/user/routes.py @@ -14,7 +14,7 @@ @router.get("/me", response_model=UserProfileResponse) async def get_current_user_profile( - current_user: Dict[str, Any] = Depends(get_current_user) + current_user: Dict[str, Any] = Depends(get_current_user), ): user = await user_service.get_user_by_id(current_user["_id"]) if not user: