You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ty checks every Python file with strict settings #243
Type mistakes that strict checking would catch can reach main, because ty runs with its default rule levels while python.md requires strict settings. ty.toml sets only the Python version and an exclude. With every rule raised to error, ty reports 107 problems across about 30 files: 37 missing @override decorators, 26 missing type arguments, 25 truthiness tests on values that can be None, 18 unsound returns or assignments, and one blanket ignore comment. The most are in fetch_pr_comments.py, test_cc.py and review_dependency_bump.py.
Ideal state
check and CI run ty with strict settings, as python.md requires.
Two more places where this repo falls short of python.md:
Unannotated functions pass every check.python.md requires an annotation on every function signature, but ruff.toml selects no ANN rules. Run with --select ANN001,ANN201,ANN202, ruff reports 16 missing annotations, such as feed and stdout in scan-system/scripts/test_classify_gh_response.py:105.
beartype is not enabled in tests.python.md has a Should for it. scripts/checks/types.bash installs beartype, but no Python file in the repo imports it.
Activity
ooloth commentedon Nov 4, 2026
Two more places where this repo falls short of
python.md:python.mdrequires an annotation on every function signature, butruff.tomlselects noANNrules. Run with--select ANN001,ANN201,ANN202, ruff reports 16 missing annotations, such asfeedandstdoutinscan-system/scripts/test_classify_gh_response.py:105.beartypeis not enabled in tests.python.mdhas a Should for it.scripts/checks/types.bashinstallsbeartype, but no Python file in the repo imports it.