ty

Run Python type checks and configure language servers via ty.

Updated Aug 29, 2025
One-click install
npx skills add https://github.com/DDTully/dotfiles --skill ty-ddtully
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ty
Source: https://github.com/DDTully/dotfiles/tree/main/skills/.agent_skills/python/ty
Command: npx skills add https://github.com/DDTully/dotfiles --skill ty-ddtully

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ty provides extremely fast Python type checking and a language server to speed up development and ensure typing correctness.

Core Features & Use Cases

  • Type checking integration with project tooling and IDEs
  • Command presets for type checks and Python version targeting
  • Language server setup for editors that support Python

Quick Start

Run ty check in the project directory to perform type checking against the configured Python version.

Frequently Asked Questions about ty

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python type checking in my project directory?

Configure Python type checking by creating a pyproject.toml or ty.toml file in your project root to define typing rules and target versions. This setup ensures consistent static analysis across your entire codebase and integrates smoothly with existing development workflows.

Can I set up a Python language server for editor integration using ty?

Yes, ty supports per-file overrides that allow you to specify distinct Python version targets for individual files. This capability ensures accurate static analysis when your project contains modules designed for different Python runtime environments.

How does static analysis with ty fit into a CI pipeline?

Static analysis with ty fits into CI pipelines by running the ty check command to enforce typing correctness on every code change. This automated type validation prevents untyped or incorrectly typed code from merging into the main branch.

What is the best way to enforce typing correctness across a Python project?

The best way to enforce typing correctness is to use a fast static analysis tool like ty to automatically validate type hints across your codebase. Running ty check ensures that all type annotations are correctly applied and maintained.