From b9dd372108f02ef58291bfa7265e89f6244958a4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 20:57:07 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.8.0 → 25.1.0](https://github.com/psf/black/compare/24.8.0...25.1.0) - [github.com/pycqa/isort: 5.13.2 → 6.0.1](https://github.com/pycqa/isort/compare/5.13.2...6.0.1) - [github.com/hhatto/autopep8: v2.3.1 → v2.3.2](https://github.com/hhatto/autopep8/compare/v2.3.1...v2.3.2) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 554dfdc75fbdbab30eaef386501dea426ad6adf8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 20:57:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- backend/app/expenses/routes.py | 4 ++-- backend/app/user/routes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: