Skip to content

Remove the stdin metadata from uv check#20501

Merged
Gankra merged 1 commit into
mainfrom
gankra/no-stdin
Jul 20, 2026
Merged

Remove the stdin metadata from uv check#20501
Gankra merged 1 commit into
mainfrom
gankra/no-stdin

Conversation

@Gankra

@Gankra Gankra commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Although it was a nice idea that it would simplify config contracts for an mvp, Micha and I agreed it Simply Doesn't Work because in scanning a workspace's files, ty is liable to find PEP-723 scripts, and then it definitely needs to call back into uv anyway.

So, rather than include two modes, where one maybe works better in simple workspaces with weird flags, we're going to just have the one mode where ty calls back into uv.

This does mean we're preserving a bit of unfortunate redundancy, in that we still need to do a sync to get the ty binary to invoke, and then ty will turn around and ask for the sync again... but it's fine, if they were going to be able to reuse the sync then it's gonna be a super cheap resync.

The more notable "hole" this opens up is this command now takes various cli flags that ty will not respect when it reinvokes uv. For the MVP we are mostly just going with "that's fine, let's ship and iterate, it's all in preview".

The most important settings to forward along should really be persistently saved in config or env-vars, so common things will "just work". The most important contradiction to this is IMO --isolated, especially because we published some docs that suggested it with the precommit hook, that's what #20500 is for.

@Gankra Gankra added the preview Experimental behavior label Jul 17, 2026
@Gankra
Gankra force-pushed the gankra/no-stdin branch from 16ad657 to 0cc86dc Compare July 17, 2026 22:39
@astral-sh-bot

astral-sh-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the main base revision.

  • Added tests: 0
  • Removed tests: 1
  • Changed suites: 1
uv::project: +0 / -1

Added: none

Removed:

  • uv::project::check::check_passes_workspace_metadata_to_ty

Although it was a nice idea that it would simplify config contracts for an mvp, Micha and I agreed it Simply Doesn't Work because in scanning a workspace's files, ty is liable to find PEP-723 scripts, and then it *definitely* needs to call back into uv anyway.

So, rather than include two modes, where one maybe works better in simple workspaces with weird flags, we're going to just have the one mode where ty calls back into uv.

This does mean we're preserving a bit of unfortunate redundancy, in that we still need to do a sync to get the ty binary to invoke, and then ty will turn around and ask for the sync again... but it's fine, if they were going to be able to reuse the sync then it's gonna be a super cheap resync.

The more notable "hole" this opens up is this command now takes various cli flags that ty will not respect when it reinvokes uv. For the MVP we are mostly just going with "that's fine, let's ship and iterate, it's all in preview".

The most important settings to forward along should really be persistently saved in config or env-vars, so common things will "just work".
@Gankra
Gankra force-pushed the gankra/no-stdin branch from 0cc86dc to 6f54f77 Compare July 20, 2026 14:47
@Gankra
Gankra enabled auto-merge (squash) July 20, 2026 14:57
@Gankra
Gankra merged commit 685f63b into main Jul 20, 2026
58 checks passed
@Gankra
Gankra deleted the gankra/no-stdin branch July 20, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants