An extremely fast Python type checker and language server, written in Rust.
Find a file
Alex Waygood d5754d3b5e
Bump version to 0.0.1a30 (#1743)
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
2025-12-03 13:29:51 +00:00
.github Use our org-wide Renovate preset (#1726) 2025-12-02 13:08:37 -05:00
assets/badge ty badge (#897) 2025-07-28 20:35:08 +01:00
docs Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00
python/ty
ruff@cd079bd92e Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00
scripts Use npm ci --ignore-scripts instead of npm install (#1722) 2025-12-02 10:14:55 -05:00
.editorconfig
.gitattributes
.gitignore
.gitmodules
.markdownlint.yaml
.pre-commit-config.yaml Update pre-commit dependencies (#1694) 2025-12-01 00:40:55 +00:00
.python-version
_typos.toml Bump version to 0.0.1-alpha.21 (#1205) 2025-09-19 08:42:23 +02:00
CHANGELOG.md Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md remove the suggestion that updating ty-vscode is optional (#1639) 2025-11-25 17:13:51 -08:00
dist-workspace.toml Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00
Dockerfile
LICENSE
mkdocs.insiders.yml
mkdocs.public.yml
mkdocs.template.yml
pyproject.toml Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00
README.md Small documentation improvements (#1606) 2025-11-21 10:24:10 +01:00
SECURITY.md
uv.lock Bump version to 0.0.1a30 (#1743) 2025-12-03 13:29:51 +00:00

ty

ty PyPI Discord

An extremely fast Python type checker and language server, written in Rust.

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 or 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.

Learning more

To learn more about using ty, see the documentation.

Getting involved

If you have questions or want to report a bug, please open an issue in this repository.

Development of this project takes place in the Ruff repository at this time. Please open pull requests there for changes to anything in the ruff submodule (which includes all of the Rust source code).

See the contributing guide for more details.

License

ty is licensed under the MIT license (LICENSE or https://opensource.org/licenses/MIT).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ty by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.