Upgrade Ruff with explicit lint policy - #4
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the harness’s Python lint toolchain to Ruff 0.16.0 while explicitly pinning the repository’s lint rule selection to the historical Pyflakes/pycodestyle baseline (E4/E7/E9/F), so upstream Ruff default-rule expansions don’t silently change the lint gate.
Changes:
- Bump Ruff from
0.12.5to0.16.0in thetestoptional dependency set. - Declare an explicit Ruff lint policy via
[tool.ruff.lint].select = ["E4", "E7", "E9", "F"]. - Document the tool/version vs policy separation rationale in
docs/ARCHITECTURE.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pyproject.toml | Pins Ruff 0.16.0 in test deps and makes the lint rule selection explicit to preserve the existing gate across Ruff default changes. |
| docs/ARCHITECTURE.md | Documents the explicit lint policy and why it’s decoupled from Ruff’s evolving implicit defaults. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+26
to
+31
| # Ruff 0.16 expanded its implicit defaults from the historical Pyflakes/pycodestyle | ||
| # baseline to hundreds of additional rules. Keep the harness policy explicit so | ||
| # dependency releases cannot silently redefine the gate; lint-policy expansion is | ||
| # reviewed separately from tool maintenance. | ||
| [tool.ruff.lint] | ||
| select = ["E4", "E7", "E9", "F"] |
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
Verification
Supersedes Dependabot PR #2, whose raw bump failed because Ruff 0.16 expanded implicit defaults.