Skip to content

[ty] Attribute dependency imports to installed packages - #29673

Draft
zsol wants to merge 4 commits into
mainfrom
zsol/ty-installed-package-ownership
Draft

zsol wants to merge 4 commits into
mainfrom
zsol/ty-installed-package-ownership

Conversation

@zsol

@zsol zsol commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Use uv's installed-package inventory to attribute imports to the packages present in the environment. This fixes missing-direct-dependency when a package remains installed after its declaration is removed, and avoids treating a resolved editable source as importable when the package is installed non-editably. Requires uv 0.13.2 or newer.

Prerequisite for #28192.

@zsol zsol added bug An issue describing something that isn't working, or a PR that fixes a bug ty The ty type checker uv Interactions between Ruff and uv, or between ty and uv labels Oct 23, 2026 — with ChatGPT Codex Connector
@astral-automations-bot

astral-automations-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 98.60%. The percentage of expected errors that received a diagnostic held steady at 98.86%. The number of fully passing files held steady at 137/146.

Results for 1e9b837 · Workflow run

@astral-automations-bot

astral-automations-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Memory usage report

Memory usage unchanged ✅


Results for 1e9b837 · Workflow run

@astral-automations-bot

astral-automations-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

ecosystem-analyzer results

No diagnostic changes detected ✅

Large timing changes:

Project Old Time New Time Change
alerta 0.12s 0.19s +58%
antidote 0.10s 0.15s +51%

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff · Timing results


Results for 1e9b837 · Workflow run

@zsol
zsol added this pull request to stack #29734 October 26, 2026 16:59
@zsol
zsol force-pushed the zsol/ty-installed-package-ownership branch from 3881072 to a278023 Compare October 26, 2026 17:56
@zsol
zsol force-pushed the zsol/ty-installed-package-ownership branch from 881317e to 1e9b837 Compare October 29, 2026 05:21

This branch was previously deployed

1 inactive deployment
automations — 1e9b837b Deployed Oct 29, 2026 by zsol via security-review / security review #96166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug ty The ty type checker uv Interactions between Ruff and uv, or between ty and uv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant