Skip to content

ci: type-check with all extras installed#97

Merged
Brescou merged 1 commit into
mainfrom
ci/typecheck-all-extras
Jul 15, 2026
Merged

ci: type-check with all extras installed#97
Brescou merged 1 commit into
mainfrom
ci/typecheck-all-extras

Conversation

@Brescou

@Brescou Brescou commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Description

Makes the CI Typecheck (pyright) job install optional extras (uv sync --frozen --all-extras), matching pytest, so provider-specific code is type-checked against real stubs. Fixes the two core/embeddings.py errors that only appear with extras installed (Azure SecretStr, Google google_api_key pydantic/__init__ stub artifact).

Fixes #96

Checklist

  • Description above explains the change and its motivation.
  • Tests added or updated for the change (make test passes locally).
  • Lint and format pass (make check, i.e. ruff check . + ruff format --check .).
  • Docs updated if behavior, config, or public API changed (README, docs/, .env.example, CHANGELOG.md).
  • No secrets, API keys, or credentials included in this diff.

Test plan

  • uv sync --frozen --all-extras && uv run pyright → 0 errors locally
  • uv run pytest green; ruff check + format check clean
  • CI Typecheck job installs --all-extras and passes on this PR
  • CONTRIBUTING.md documents the local reproduction commands
  • No pyright config weakened; Google suppression is line-targeted with justification

Close the pyright blind spot where optional provider imports were never
checked against real stubs. Fix Azure/Google embeddings typing revealed
by the fuller install. Fixes #96.
@Brescou
Brescou merged commit b105246 into main Jul 15, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: typecheck job skips optional extras — provider code is never pyright-checked

1 participant