RC RANDOM CHAOS

Astral Unifies Python Tools: uv Meets ty

· via Hacker News

Original source

Bringing uv and ty together

Hacker News →

Astral announced an experimental uv-ty integration that unifies Python package management with type checking. The feature represents a step toward their vision of a cohesive toolchain where each tool remains independently useful but becomes more powerful through combination.

Two main capabilities ship today. First, ty gains full support for PEP 723 Python scripts, which declare dependencies and version requirements inline. Scripts can have different dependency sets within the same repo, and ty type-checks each against its specific declarations. Second, a new unified “uv check” command handles environment preparation, dependency installation, and type checking in one operation.

Under the hood, uv provides structured metadata about your project’s packages and dependencies, which ty uses to deliver accurate type checking and editor features. For individual scripts, ty invokes uv to set up the environment on demand. The feature requires uv 0.12.3+ and ty 0.0.76+, with plans to expand this pattern to include linting through Ruff.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.