ci(seedgo-audit): install memory extra so pyright resolves chromadb/numpy (DPLAN-0195)
Final straggler: memory scored 98% (diagnostics 55% = 9 pyright errors) in CI while 100% locally. Proven cause: the diagnostics standard runs pyright over every branch; memory's handlers import chromadb/numpy at module level. These are declared in the 'memory' optional-dependencies group, NOT 'dev' — and the audit job installed only '.[dev]', so pyright flagged them unresolved (reportMissingImports=error) → 9 false errors. My local .venv happens to have chromadb, which is why local audits read 100%. Fix: audit job installs '.[dev,memory]'. pyright now resolves memory's real, declared deps and the standard measures actual type-correctness (and matches a local audit). api imports openai (llm extra) but guards it lazily, so it stays 100% without that extra — only memory needed this. 12/13 were already green after the readme check-ignore fix; this clears the 13th. 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
4c7e14a255
commit
27a175b2c9
@@ -58,7 +58,14 @@ jobs:
|
||||
python-version: "3.13"
|
||||
- run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
# Install the `memory` extra (numpy/chromadb/fastembed) alongside dev:
|
||||
# the diagnostics standard runs pyright over every branch, and memory's
|
||||
# handlers import chromadb/numpy. Without these deps installed, pyright
|
||||
# reports them as unresolved imports (reportMissingImports=error) and
|
||||
# memory scores <100 — a false failure from a missing CI dep, not a code
|
||||
# defect. Installing the declared extra lets pyright resolve them so the
|
||||
# audit measures real type-correctness (and matches a local audit).
|
||||
pip install -e ".[dev,memory]"
|
||||
- name: Run seedgo standards audit
|
||||
run: python .github/scripts/seedgo_audit.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user