ty is way faster. We should replace mypy in our pre-commit configuration with ty.
Link: https://docs.astral.sh/[ty](https://docs.astral.sh/ty/)
There isn't a 1-to-1 replacement of all the things we're doing but we can try to get as close as possible.
For example, settings like the following may provide an experience closer to strict mode in mypy:
[tool.ty.rules]
# Turn up key rules to "error" for a stricter experience
invalid-assignment = "error"
invalid-argument-type = "error"
unresolved-attribute = "error"
ty is way faster. We should replace mypy in our pre-commit configuration with ty.
Link: https://docs.astral.sh/[ty](https://docs.astral.sh/ty/)
There isn't a 1-to-1 replacement of all the things we're doing but we can try to get as close as possible.
For example, settings like the following may provide an experience closer to
strictmode in mypy: