Skip to content

ci: the 'ty' typechecking is failing #14238

@jayaddison

Description

@jayaddison

Describe the bug

Recently typechecking with Astral's ty utility was added to our GitHub Actions workflows in #14129.

However, currently ty v0.0.8 is reporting a few errors that cause pull requests to be flagged as failed.

Note: one of the errors/reports from the tool is in fact a note that there is a likely typo/config error in its own ty.toml config file:

warning[unknown-rule]: Unknown rule `non-subscriptable`. Did you mean `not-subscriptable`?
  --> ty.toml:25:1
   |
23 | invalid-assignment = "ignore"
24 | invalid-method-override = "ignore"
25 | non-subscriptable = "ignore"
   | ^^^^^^^^^^^^^^^^^
26 | possibly-missing-attribute = "ignore"

How to Reproduce

Recent pull requests and commits have encountered this problem, and until it is resolved, I expect new pull requests to too. For example:

Installing ty locally - for example, using pip install ty within a virtualenv - and then running ty check also replicates the problem.

Environment Information

N/A

Sphinx extensions

N/A

Additional context

No response

Edit: add ty version number, and local repro steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions