style: enable ty as stable type checker
Metadata
Current evaluation
Superseded by canonical/craft-platforms#201, which merged commit 5407de0 to add ty as the stable type checker while retaining mypy and pyright.
Resolution: closed superseded
Reason: PR #200 was closed without merging after the same change was submitted as #201. PR #201 merged as commit 5407de0 and enabled ty in the regular linting process.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint && make test`?
---
This doesn't (yet) remove pyright or mypy, but ty is now stable and can be used as part of our regular process.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Superseded by canonical/craft-platforms#201, which merged commit 5407de0 to add ty as the stable type checker while retaining mypy and pyright. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR to enable `ty` as the stable type checker in the project's linting process, alongside existing pyright/mypy. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Superseded By:
canonical/craft-platforms#201
(confidence 99%)
The identically titled PR merged the intended change in commit 5407de0.
-
Likely Fixed By:
canonical/craft-platforms#201
(confidence 99%)
Its merged implementation added ty to regular linting without removing mypy or pyright.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #201 style: enable ty as stable type checker | craft-platforms | merged | Merged in craft-platforms#201 (commit 5407de0), enabling ty as the stable type checker in regular checks while retaining pyright and mypy for now. | |
| #223 style: switch from mypy+pyright to ty | craft-platforms | merged | Merged PR #223 by lengau replaced mypy and pyright with the ty type checker in craft-platforms, dropping ~274 lines across 3 files; approved by 2 reviewers with all lint/test CI green. | |
| #152 style: remove mypy and pyright to go all-in on ty | debcraft | merged | Merged canonical/debcraft#152, removing mypy and pyright and standardizing type checking on Astral ty after approval by two reviewers. | |
| #472 style: enable ty by default | starbase | merged | Merged PR #472 as commit 7982765, making Astral ty a default type-checking option while retaining existing checkers. | |
| #6247 style: go all-in on ty | snapcraft | merged | Merged PR #6247 (commit 534d7dce7) replaced mypy and pyright with ty, removed obsolete suppressions, and resolved #6007. | |
| #1084 style: replace mypy and pyright with ty | craft-application | merged | Merged PR #1084 as squash commit 345bd5d9, replacing mypy and pyright with ty and updating lint configuration for craft-app 7. | |
| #421 style: ty | craft-cli | merged | Merged PR #421 as 5c6d127, updating ty to unblock snapcraft#5673; it opened #420 to remove mypy and pyright, later resolved by #479. |