diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d7ef4d7..99f5d62 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -68,7 +68,7 @@ jobs: - uses: isort/isort-action@master with: requirementsFiles: "requirements.txt requirements.dev.txt" - - uses: psf/black@stable + - uses: psf/black@23.11.0 - name: Comment if linting failed if: failure() uses: thollander/actions-comment-pull-request@v2 diff --git a/rental_backend/routes/rental_session.py b/rental_backend/routes/rental_session.py index e574024..1bc2759 100644 --- a/rental_backend/routes/rental_session.py +++ b/rental_backend/routes/rental_session.py @@ -299,7 +299,6 @@ async def accept_end_rental_session( dependencies=[Depends(check_sessions_expiration), Depends(check_sessions_overdue)], ) async def get_rental_session(session_id: int, user=Depends(UnionAuth(scopes=["rental.session.admin"]))): - rental_session: RentalSession | None = ( RentalSession.query(session=db.session) .options(joinedload(RentalSession.strike)) diff --git a/requirements.dev.txt b/requirements.dev.txt index e51c72c..336b8df 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,5 +1,5 @@ autoflake -black +black==23.11.0 httpx isort pytest