Skip to content

Commit 3983853

Browse files
committed
fix: lint
1 parent 7360b89 commit 3983853

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

commitly-backend/app/api/roadmap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Annotated, Optional
3+
from typing import Optional
44

55
from fastapi import APIRouter, Depends, HTTPException, Query, Response, status
66
from sqlalchemy.orm import Session
@@ -15,7 +15,6 @@
1515
RoadmapResponse,
1616
UserRepoStateResponse,
1717
)
18-
from app.services.roadmap_repository import SortOption
1918
from app.services.roadmap_service import RoadmapService, build_roadmap_service
2019

2120
router = APIRouter()

commitly-backend/app/services/roadmap_repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
from typing import Iterable, Literal
66

7-
from sqlalchemy import Integer, case
7+
from sqlalchemy import case
88
from sqlalchemy.exc import OperationalError, ProgrammingError, SQLAlchemyError
99
from sqlalchemy.orm import Session
1010
from sqlalchemy.orm.attributes import flag_modified
@@ -371,6 +371,7 @@ def action() -> tuple[list[RoadmapResponse], int]:
371371
return [self._to_response(record) for record in records], total
372372

373373
return self._with_table_guard(action)
374+
374375
def _to_response(self, record: GeneratedRoadmap) -> RoadmapResponse:
375376
summary_payload = dict(record.repo_summary)
376377
# Ensure counters stored as columns are surfaced even if repo_summary lacks them

commitly-backend/app/services/roadmap_service.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from app.core.config import settings
1111
from app.models.roadmap import (
1212
RatingResponse,
13-
RoadmapCatalogPage,
1413
RoadmapRepoSummary,
1514
RoadmapResponse,
1615
UserRepoStateResponse,
@@ -35,7 +34,6 @@
3534
from app.services.roadmap_rating_store import RoadmapRatingStore
3635
from app.services.roadmap_repository import (
3736
RoadmapResultStore,
38-
SortOption,
3937
UserSyncedRepoStore,
4038
)
4139
from app.services.roadmap_view_tracker import RoadmapViewTrackerService

0 commit comments

Comments
 (0)