chore(release): 0.2.12 — Deep Research mode + Docker/Makefile/install fixes#102
Merged
Conversation
The dev tools moved to a PEP 735 [dependency-groups] table, so the template jobs that install a *generated* project must use `uv sync --dev`, not `uv sync --extra dev` (which now errors "Extra `dev` is not defined in the project's optional-dependencies table"). The four generator-repo jobs keep `--extra dev` — the generator's own pyproject still uses optional-dependencies.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The minimal SQLite project reported 31 ty diagnostics; the only build-blocking ones were `unused-awaitable` — the SQLite admin/user routes were sync `def`s that never awaited the always-async UserService, returning un-awaited coroutines (a real bug). Fixes: - Make the SQLite admin_users/users routes `async` + `await` (matches MongoDB). - Type service id params per database via a `UserId` alias (UUID for Postgres, str for SQLite/MongoDB); resolve reset/magic-link tokens to the same type. - Type the agent capability list `list[Any]`; `AdminService.__init__` db as `Any` so one impl serves async (PG) and sync (SQLite). - Feature-gate the admin-stats best-effort model imports (session/credit/ subscription) instead of importing absent modules. - Build the args validator dict without the dict() overload ty can't match. - Convert mypy `# type: ignore` to `# ty: ignore` where ty still flags the line. - Set `unresolved-import` and `unused-ignore-comment` ty rules to ignore: the former covers genuinely-optional deps (pymupdf/docx) and feature-gated models, the latter tolerates an ignore that's needed in one config but unused in another generated from the same template. Minimal SQLite now type-checks clean (0); all configs `ty check` exit 0.
The SQLite admin/user routes became `async` + `await` (they were sync `def`s returning un-awaited coroutines), so the SQLite test fixture mocking the service with a plain MagicMock made `await service.get_by_id(...)` raise "'MockUser' object can't be awaited". UserService is async for every database now, so mock it with AsyncMock unconditionally.
…orks Extends the ty cleanup to the heavier configs so every generatable project type-checks clean (0 diagnostics, ty exit 0): - Real bug: InvitationRead was missing `organization_id` and `token` fields, so the invite/list endpoints silently dropped them (pydantic ignores extra kwargs). Added the fields. - stripe_client: annotate `_handle_error` as NoReturn (it always raises) so the Stripe wrappers no longer "implicitly return None"; targeted ty:ignore on the two Stripe-stub kwarg mismatches. - Targeted ty:ignore for the remaining Stripe-SDK / ORM-list-variance spots (billing routes, subscription_events, webhook_handler, facade, projects, rowcount in invitation/usage_event/rag_document repos, mongo apaginate). - Scope a ty override to app/agents/*_assistant.py ignoring the third-party stub rule families (LangGraph Pregel ainvoke/astream, create_agent overloads, RunnableConfig TypedDicts, Agent[...] generic variance) — the adapters are correct at runtime; name-resolution rules stay on so real typos still fail. Verified clean: SQLite (minimal), PostgreSQL (plain + teams/billing/credits), MongoDB, LangChain, LangGraph, DeepAgents, PydanticDeep. CrewAI still can't resolve deps on Python 3.14 (pydantic-core build) — CI already skips its ty.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deep Research mode (#90) plus a batch of generated-project infra fixes: make install pre-commit spawn (#95), Makefile Compose v2 (#96), frontend Docker build (#97), pydantic_deep Responses API routing (#93), Taskiq container health (#94), codecov-action bump (#89).
Summary
Changes
Testing
make testmake lintmake typecheckRelated Issues
Notes for Reviewers