Skip to content

Commit 0a14101

Browse files
committed
fix chapter 3
1 parent 28d2a81 commit 0a14101

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Chapter03/reservation-service/presentation/api/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ async def create_availability_slot(
9090
)
9191
async def list_available_slots(
9292
request: Request,
93-
week_day: WeekDaySchema | None = Query(
93+
week_day: WeekDaySchema | None = Query( # noqa: FAST002
9494
None, description="Filter by day of the week"
9595
),
96-
time_slot: TimeSlotSchema | None = Query(
96+
time_slot: TimeSlotSchema | None = Query( # noqa: FAST002
9797
None, description="Filter by time slot"
9898
),
9999
) -> list[SlotResponseSchema]:

Chapter03/reservation-service/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ dev = [
2121
line-length = 66
2222

2323
[tool.ruff.lint]
24-
select = ["I", "E4", "E7", "F", "Q", "FAST", "UP"]
24+
select = ["I", "E", "F", "Q", "FAST", "UP"]
25+
26+
[tool.ruff.lint.pycodestyle]
27+
max-line-length=120
2528

2629
[tool.pytest.ini_options]
2730
pythonpath = ["."]

0 commit comments

Comments
 (0)