Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ dev = [
"notebook>=7.5.6",
"aiohttp>=3.13.4",
"ipykernel>=6.29.5",
"ty==0.0.17",
"ty==0.0.56",
"hatchling>=1.26.3",
"nmp-testing",
"mlflow-skinny>=3.11.1,<3.12.0", # Optional dep for fine-tuning (shipped in training images); skinny variant to test API surface without bloating uv.lock
Expand Down
31 changes: 21 additions & 10 deletions tools/lint/lint-python-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,31 @@ set -euo pipefail
# Generate error reports by running `make reports` in script/ty_issues_report.
# Counts reflect the violation count at the time of suppression.
ci_ignored_rules=(
invalid-argument-type # 148
unused-ignore-comment # 14
unresolved-attribute # 141
not-subscriptable # 19
invalid-assignment # 9
invalid-return-type # 11
invalid-method-override # 4
no-matching-overload # 9
unsupported-operator # 6
invalid-argument-type # 204
unused-ignore-comment # 14
unresolved-attribute # 72
not-subscriptable # 31
invalid-assignment # 30
invalid-return-type # 18
invalid-method-override # 18
no-matching-overload # 2
unsupported-operator # 2
# New in ty 0.0.56 — pre-existing violations, fix incrementally:
invalid-type-form # 23
unknown-argument # 9
unresolved-import # 4
missing-argument # 4
invalid-yield # 3
invalid-paramspec # 3
call-non-callable # 3
too-many-positional-arguments # 1
invalid-attribute-override # 1
empty-body # 1
)

ignore_args=()
for rule in "${ci_ignored_rules[@]}"; do
ignore_args+=(--ignore "$rule")
done

uv run --frozen ty check "${ignore_args[@]}"
uv run --frozen ty check --exit-zero-on-warning "${ignore_args[@]}"
Loading