ty == `ty `_ is an extremely fast Python type checker written in Rust. It performs gradual type checking, validating type annotations where they exist without requiring full type coverage. Run Locally ----------- The mozlint integration of ty can be run using mach: .. parsed-literal:: $ mach lint --linter ty Configuration ------------- ty is configured in the root `pyproject.toml`_ file under the ``[tool.ty]`` section. The exclude patterns from ruff's configuration are also applied to ty to reduce duplication. For more details on configuration options, see the `ty documentation`_. Sources ------- * `Configuration (YAML) `_ * `Source `_ .. _pyproject.toml: https://searchfox.org/mozilla-central/source/pyproject.toml .. _ty documentation: https://github.com/astral-sh/ty