Bump ruff to 0.16.0 and adopt more default rule set - #760
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Ruff to 0.16.0 and adapts linting, formatting, and CI configuration to its new defaults.
Changes:
- Upgrades Ruff dependencies and pre-commit hook.
- Restores selected legacy rules and enables additional lint families.
- Applies Ruff-driven code simplifications and Markdown formatting support.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Updates Ruff and lint configuration. |
uv.lock |
Locks Ruff 0.16.0 artifacts. |
.pre-commit-config.yaml |
Upgrades hooks and enables Markdown formatting. |
.github/workflows/CI.yml |
Enables GitHub annotation output. |
tools/altest/bcbench_analyze_artifacts.py |
Applies a performance lint simplification. |
src/bcbench/operations/test_operations.py |
Removes redundant exception parentheses. |
src/bcbench/operations/git_operations.py |
Removes redundant exception parentheses. |
src/bcbench/evaluate/base.py |
Removes redundant exception parentheses. |
src/bcbench/agent/bcal/bc_eval_capi_bridge.py |
Applies import sorting. |
Co-authored-by: haoranpb <27280733+haoranpb@users.noreply.github.com>
Sun Haoran (haoranpb)
marked this pull request as ready for review
July 30, 2026 09:20
Magnus Hartvig Grønbech (Groenbech96)
approved these changes
Jul 30, 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.
Bumping ruff to 0.16.0 and utilize the richer default rule set.
Some other rules we have been ignoring have been enforced.
No functional changes.