Repository navigation
Fix lint failures with ruff 0.16 - #52
Merged
Merged
Conversation
ruff 0.16 expanded its default rule set, so the pep8 tox env (which installs unpinned ruff) started failing with import-block formatting (I001), unnecessary range start arguments (PIE808), and unused unpacked variables (RUF059). Apply the automatic fixes and prefix the unused extended-coordinate `t` values with an underscore. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RPSYybguMV6r7eLQDXXnft
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RPSYybguMV6r7eLQDXXnft
reaperhulk
approved these changes
Sep 10, 2026
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
The
pep8tox env installs unpinned ruff, and ruff 0.16 widened its default rule set. CI picked up ruff 0.16.6 and started reporting 10 errors that 0.15.x never flagged, so the lint job is currently red on every PR.This applies the fixes:
ed25519.py,science.py, andsetup.py.0start argument fromrange(0, b)indecodeintanddecodepoint.tvalues unpacked inedwards_double,encodepoint,checkvalid, and one test now use_.No behavior changes.
Test plan
ruff checkandruff format --checkpass on ruff 0.16.6 (CI's version) and 0.15.8pytestpasses (1025 tests)🤖 Generated with Claude Code
https://claude.ai/code/session_01RPSYybguMV6r7eLQDXXnft
Generated by Claude Code