Repository navigation
build(deps): bump ty to 0.0.100 - #41
Merged
Merged
Conversation
ty renamed unresolved-attribute to missing-attribute and now warns on the old name in ignore comments, so the five such comments are renamed. The ignore in the S10 hook's loader patch is no longer needed. The only rule whose default moved toward ignore is invalid-legacy-positional-parameter (warn -> ignore, 0.0.84); it is left off because it checks only the pre-PEP 570 __name convention, which this code never uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 4b, the last step of the dependency refresh: ty 0.0.83 → 0.0.100. ty is pre-1.0 and changes rules in patch releases, so this is its own reviewable change (CLAUDE.md, Commands).
What 0.0.84–0.0.100 changes for us
Under 0.0.100,
ty checkreported 6 warnings, andty checkfails on any warning.unresolved-attributeis nowmissing-attribute, and since 0.0.98 an old name in a# ty: ignore[...]raisesrenamed-rule-in-ignore-comment. The five comments are renamed (intest_charts.py,test_chunk.pyandtest_models.py).exec_modulepatch ineval/s10_hook/sitecustomize.py. The ignore is dropped, and the line keeps its explanatory comment.test_s10_check.pyexecutes the hook, and it passes.Rule defaults, diffed
I compared
ty explain rule'sDefault level:lines for 0.0.83 (136 rules) and 0.0.100 (150 rules). Every difference is one of these:unresolved-import→import-not-found,invalid-*-override→incompatible-*-override,invalid-overloadandinvalid-keysplit into finer rules,unresolved-attribute→missing-attributeandmissing-union-attribute.abstract-class-instantiationandlost-keyword-for-regular-parameter.mismatched-sentinel-nameandtruthiness-test-of-none-union.One narrowing:
invalid-legacy-positional-parametermoved from warn to ignore (0.0.84). It stays off. It checks only the pre-PEP 570__namepositional-only convention, which this Python 3.12 code never uses, and enabling it finds nothing here. That is unlike ruff 0.17's dropped DTZ rules (#40), which guard real bugs.Docs
CLAUDE.md now records the renames and the narrowing, and says to diff
ty explain rule's default levels on every ty upgrade.Verification
GATE_FORCE=1 ./scripts/gate.shpasses.🤖 Generated with Claude Code