Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install uv.
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
COPY --from=ghcr.io/astral-sh/uv:0.11.2 /uv /uvx /bin/

# Copy the application into the container.
ADD . /app
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def filter(self, record: logging.LogRecord) -> bool: # pragma: no cover
if ( # noqa: SIM103
record.args
and len(record.args) >= 3 # noqa: PLR2004
and record.args[2] in self.excluded_endpoints # type: ignore[invalid-argument-type]
and record.args[2] in self.excluded_endpoints # ty: ignore[invalid-argument-type]
):
return False # Exclude this log record
return True # Include this log record
Expand Down
2 changes: 1 addition & 1 deletion app/models/contestant_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Contestant(BaseModel):
id: UUID = Field(default_factory=uuid4)
first_name: str
last_name: str
birth_date: date
birth_date: date | None = Field(default=None)

@field_serializer("birth_date")
def serialize_birth_date(self, dt: date) -> str:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dev = [
]

[tool.uv]
required-version = ">=0.10.2"
required-version = ">=0.11.2"

[tool.ruff.lint]
select = ["ALL"]
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/test_contestants.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,11 @@ async def test_get_contestant_by_id(
assert body["id"] == str(contestant.id)
assert body["first_name"] == contestant.first_name
assert body["last_name"] == contestant.last_name
assert body["birth_date"] == contestant.birth_date.isoformat()
assert (
body["birth_date"] == contestant.birth_date.isoformat()
if contestant.birth_date
else None
)
assert body["gender"] == contestant.gender
assert body["ageclass"] == contestant.ageclass
assert body["region"] == contestant.region
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ async def test_get_event_by_id(
assert body["competition_format"] == event.competition_format
assert body["timezone"] == event.timezone
assert body["date_of_event"] == event.date_of_event.isoformat()
assert body["time_of_event"] == event.time_of_event.isoformat() # type: ignore[attr-defined]
assert (
body["time_of_event"] == event.time_of_event.isoformat()
if event.time_of_event
else None
)
assert body["organiser"] == event.organiser
assert body["webpage"] == str(event.webpage)
assert body["information"] == event.information
Expand Down
194 changes: 97 additions & 97 deletions uv.lock

Large diffs are not rendered by default.