Learn extra at:
Ty
Astral’s ty project can be nonetheless in its early levels, and it exhibits. Its documentation isn’t as fleshed-out as Pyrefly’s, and its characteristic set is much less spectacular. To be truthful, the venture was solely just lately made public and is admittedly in its early levels.
You may set up Ty from pip
or run it from uvx
. It intelligently detects a supply listing in a pyproject.toml
-configured venture, so it doesn’t mistakenly chew by means of Python information in your venture’s digital surroundings. However its configuration choices are extra minimal than Pyrefly’s; as an example, excluding information from checks is finished by way of .gitignore
or different exterior information slightly than from configuration guidelines.
Ty’s ruleset for checking information appears extra condensed than Pyrefly or present instruments, though it covers some instances not discovered elsewhere. As an example, whereas it doesn’t test for async errors, Ty does detect if class definitions have conflicting usages of __slots__
, though the previous looks as if a much more widespread downside than the latter.