Skip to content

Use new type checker tool #569

Description

@RemingtonRohel

Astral (company behind ruff and uv) has released a type checker / language server, called ty. Essentially, it builds a model of possible types for each variable in your code based on type declarations and usage, then alerts you when you use a variable improperly based on the model. It is extremely quick. This would be a great tool for supplementing unit tests in ensuring code correctness.

I suggest adding ty to the pre-commit checks. There is not yet an official Github Action for the tool, but once there is we should add it to this codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions