From 63e073c224722550a1bd3ef4ca82a6e9766e64f3 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Wed, 3 Jun 2026 04:25:30 +0200 Subject: [PATCH] fix(ci): install procrastinate in the dev group so ty + unit tests resolve it CI runs `uv run --frozen ty check -- nextcloud_mcp_server` and `uv run pytest -m unit`, which install the default + dev groups but not the `[postgres]` optional extra. vector/queue/procrastinate.py imports procrastinate at module scope (the task registration needs App/Blueprint), so without it installed ty fails on unresolved imports and the procrastinate unit tests fail to collect. Add procrastinate + psycopg to the dev group (kept in the [postgres] extra for production opt-in) so dev/CI always type-check and test against them, while SQLite/personal installs stay free of the Postgres deps. Matches the repo's optional-DB-driver philosophy. Co-Authored-By: Claude Opus 4.8 (1M context) --- pyproject.toml | 2 ++ uv.lock | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 03ef34a9..7c9909a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,6 +125,8 @@ dev = [ "reportlab>=4.0.0", "ty>=0.0.1a25", "pytest-otel>=2.0.1", + "procrastinate>=3.8", + "psycopg[binary,pool]>=3.2", ] [project.scripts] diff --git a/uv.lock b/uv.lock index 8ba2433f..52113768 100644 --- a/uv.lock +++ b/uv.lock @@ -2236,6 +2236,8 @@ dev = [ { name = "datasets" }, { name = "ipython" }, { name = "playwright" }, + { name = "procrastinate" }, + { name = "psycopg", extra = ["binary", "pool"] }, { name = "pytest" }, { name = "pytest-cov" }, { name = "pytest-mock" }, @@ -2296,6 +2298,8 @@ dev = [ { name = "datasets", specifier = ">=3.3.0" }, { name = "ipython", specifier = ">=9.2.0" }, { name = "playwright", specifier = ">=1.49.1" }, + { name = "procrastinate", specifier = ">=3.8" }, + { name = "psycopg", extras = ["binary", "pool"], specifier = ">=3.2" }, { name = "pytest", specifier = ">=8.3.5" }, { name = "pytest-cov", specifier = ">=6.1.1" }, { name = "pytest-mock", specifier = ">=3.15.1" },