Implement usethis badge ty#1462
Merged
Merged
Conversation
Add a badge for the ty type checker from Astral. The badge uses the endpoint URL from the ty repository's assets. Changes: - Add get_ty_badge() function in src/usethis/_core/badge.py - Add ty to badge ordering in get_badge_order() - Add ty CLI command in src/usethis/_ui/interface/badge.py - Add tests for ty badge in tests/usethis/_ui/interface/test_interface_badge.py - Update docs/cli/reference.md with ty badge entry Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/9a568c69-1340-45e1-bc80-2c3cd91a906a
Copilot
AI
changed the title
[WIP] Add usethis badge for ty implementation
Implement Mar 22, 2026
usethis badge ty
nathanjmcdougall
approved these changes
Mar 22, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Add badge support for the ty type checker.
Renders:
src/usethis/_core/badge.py: Addget_ty_badge()and include it inget_badge_order()after Ruffsrc/usethis/_ui/interface/badge.py: AddtyCLI command with standard--remove/--show/--offline/--quietoptionstests/usethis/_ui/interface/test_interface_badge.py: AddTestTy(add, remove, show)docs/cli/reference.md: Add ty badge entryOriginal prompt
usethis badge ty#1215✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.