From 3f0d6f05f7e0e1c8580b175dc236d0103af0b5e3 Mon Sep 17 00:00:00 2001 From: stroblme Date: Thu, 15 Oct 2026 16:09:08 +0200 Subject: [PATCH] pre-commit CI installs the extras, so strict mypy finds the server-extra imports Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx --- .gitea/workflows/pre-commit.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pre-commit.yml b/.gitea/workflows/pre-commit.yml index bef3351..a87007a 100644 --- a/.gitea/workflows/pre-commit.yml +++ b/.gitea/workflows/pre-commit.yml @@ -43,9 +43,11 @@ jobs: # settings, which read ../.env from backend/. run: cp .env.example .env # The hooks call `uv run ruff` from the repo root, so the workspace .venv - # (pyproject.toml → [tool.uv.workspace]) is what has to exist. + # (pyproject.toml → [tool.uv.workspace]) is what has to exist. The extras + # too, as `make lint-backend` does: strict mypy below checks call sites + # into what only the `server` extra installs. - name: Install backend dependencies - run: uv sync + run: uv sync --all-extras - name: Install frontend dependencies run: bun install --frozen-lockfile # The formatting hooks rewrite files; pre-commit exits non-zero when they