Oriel — AI & technology worth noticing, every day.

Bringing uv and ty together

Web page · https://astral.sh/blog/uv-ty-integration

First seen by Oriel on .

AI summary

Astral’s experimental uv-ty integration lets ty use uv-managed environments for Python scripts and adds `uv check` to prepare dependencies and type-check projects.

  • ty reads PEP 723 metadata to check each script against its own declared dependencies and Python version, including scripts with requirements different from the surrounding project.
  • In editors, ty can use uv to prepare script environments and provide type checking, completions, hover information, and Go to Definition; automatic setup is opt-in because installation may execute third-party code.
  • `uv check` supports whole projects, workspace packages, and individual scripts, and uses the ty version recorded in the project lockfile.
  • The integration requires uv 0.12.3 or later and ty 0.0.76 or later; support is experimental, with Ruff integration and unused-dependency checks planned.

#uv #ty #python #pep 723

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 312, latest observation ; +299 over observed period since
  • Lobsters: 58, latest observation ; +55 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 125, latest observation ; +120 over observed period since
  • Lobsters: 0, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Hacker News50172962https://astral.sh/blog/uv-ty-integration Read discussion
Lobstersdfieqahttps://astral.sh/blog/uv-ty-integration Read discussion