Conversation
Agent-Logs-Url: https://github.com/ShigureLab/codespan-reporting-py/sessions/b48997c5-0017-49fa-9e5a-b1b950b48116 Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
SigureMo
April 25, 2026 18:11
View session
There was a problem hiding this comment.
Pull request overview
Updates the repo’s Python typing workflow by replacing Pyright with Astral’s ty, aligning local/CI linting with the new type-check command and re-enabling Ruff’s unused-code rules now that Pyright is removed.
Changes:
- Replace
pyrightdev dependency and[tool.pyright]config withtyinpyproject.toml. - Update
just lintto runpython -m ty check --error-on-warning .instead of Pyright. - Re-enable Ruff’s unused import/variable checks by removing
F401/F841ignores.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
pyproject.toml |
Swaps Pyright for ty and adjusts Ruff ignore rules to enforce unused-code checks. |
justfile |
Updates the lint recipe to run ty instead of Pyright. |
đź’ˇ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
pyrightwithtyin the development dependenciespython -m ty check --error-on-warning .Validation
python -m pip install -e '.[dev]'python -m ruff check .python -m ty check --error-on-warning .python -m pytestpython -m build