python-ty

Detect type errors in Python code with the ty type checker.

3|Updated Jun 4, 2021
One-click install
npx skills add https://github.com/tizee/dotfiles --skill python-ty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-ty
Source: https://github.com/tizee/dotfiles/tree/main/claude/skills/python-ty
Command: npx skills add https://github.com/tizee/dotfiles --skill python-ty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ty, uv.

What problem does it solve?

Provides fast type checking for Python projects using ty, speeding up development and CI.

Core Features & Use Cases

  • Fast checks: Runs quickly with minimal configuration
  • CI integration: easy to wire into CI and local development
  • Config support: ty.toml for project-level options

Quick Start

Run: uvx ty check in your project root or target directories.

Frequently Asked Questions about python-ty

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

FAQPage Schema
How do I detect type errors in Python code?

Type checking detects type errors by analyzing Python code for inconsistencies between variable assignments, function arguments, and return values. Run `uvx ty check` in your project root to scan for type mismatches and receive detailed error reports.

Can I integrate type checking into my CI pipeline?

Yes, ty integrates into CI pipelines with multiple output formats and explicit exit codes. Use `uvx ty check` in your CI workflow; configure behavior via ty.toml for project-level options like Python version targeting and file exclusions.

What's the fastest way to run type checking locally during development?

ty provides fast type checking with minimal configuration overhead. Run `uvx ty check` in watch mode or target specific directories to get quick feedback on type errors without slowing your development loop.

Does ty support excluding files and targeting specific Python versions?

Yes, ty.toml configuration supports file exclusions and Python-version targeting. Define these project-level options in ty.toml to customize which files are checked and which Python version semantics ty applies.

How do I configure type checking for my Python project?

Configure type checking by creating a ty.toml file in your project root. This file lets you set project-level options including file patterns to exclude, Python version targets, and other type-checking behavior tailored to your codebase.