Ty

Published: (November 30, 2025 at 04:30 PM EST)
2 min read
Source: Hacker News

Source: Hacker News

Getting started

Try out the online playground, or run ty with uvx to get started quickly:

uvx ty

For other ways to install ty, see the installation documentation.

If you do not provide a subcommand, ty will list available commands — for detailed information about command‑line options, see the CLI reference.

Use the check command to run the type checker:

uvx ty check

ty will run on all Python files in the working directory and subdirectories. If used from a project, ty will run on all Python files in the project (starting in the directory with the pyproject.toml).

You can also provide specific paths to check:

uvx ty check example.py

When type checking, ty will find installed packages in the active virtual environment (via VIRTUAL_ENV) or discover a virtual environment named .venv in the project root or working directory. It will not find packages in non‑virtual environments without specifying the target path with --python. See the module discovery documentation for details.

Usage

Run ty check in your project’s top‑level directory to check the project for type errors using ty’s default configuration. If this provokes a cascade of errors, and you are using the standard library venv module to provide your virtual environment, add the venv directory to your .gitignore or .ignore file and then retry.

0 views
Back to Blog

Related posts

Read more »

Losing Confidence

Article URL: https://eclecticlight.co/2025/11/30/last-week-on-my-mac-losing-confidence/ Comments URL: https://news.ycombinator.com/item?id=46114599 Points: 88...