Skip to content

Commit d9a5af4

Browse files
committed
fix backend-lint.yml
1 parent cd974e2 commit d9a5af4

2 files changed

Lines changed: 3 additions & 28 deletions

File tree

.github/workflows/backend-lint.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Backend Lint
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
pylint:
@@ -46,29 +46,4 @@ jobs:
4646
- name: Run Ruff
4747
working-directory: backend
4848
run: |
49-
ruff check .
50-
51-
52-
mypy:
53-
runs-on: ubuntu-latest
54-
55-
steps:
56-
- name: Checkout repository
57-
uses: actions/checkout@v4
58-
59-
- name: Set up Python
60-
uses: actions/setup-python@v6
61-
with:
62-
python-version: "3.14"
63-
64-
- name: Install MyPy and dependencies
65-
working-directory: backend
66-
run: |
67-
python -m pip install --upgrade pip
68-
pip install -r requirements.txt
69-
pip install mypy
70-
71-
- name: Run MyPy
72-
working-directory: backend
73-
run: |
74-
mypy .
49+
ruff check .

backend/app/routes/auth_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
status_code=status.HTTP_200_OK,
1616
summary="Authenticate a user and return JWT tokens"
1717
)
18-
def login(request: LoginRequest, db: Session = Depends(get_db)) -> LoginResponse:
18+
def login(request: LoginRequest, db: Session = Depends(get_db)):
1919
"""Authenticate a user and return access plus refresh tokens."""
2020

2121
user, access_token, refresh_token = AuthService.login(db, request.username)

0 commit comments

Comments
 (0)