Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions backend/app/expenses/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion backend/app/user/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading