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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
3407e3cf64
commit
63e073c224
@@ -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]
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user