Skip to content

Upgrade Ruff with explicit lint policy - #4

Merged
evanfollis merged 1 commit into
mainfrom
agent/dependency-closure-july-2026
Jul 26, 2026
Merged

Upgrade Ruff with explicit lint policy#4
evanfollis merged 1 commit into
mainfrom
agent/dependency-closure-july-2026

Conversation

@evanfollis

Copy link
Copy Markdown
Owner

Summary

  • upgrade Ruff from 0.12.5 to 0.16.0
  • make the existing E4, E7, E9, and F gate explicit
  • prevent future tool releases from silently redefining repository lint policy

Verification

  • make check
  • repository hygiene passes
  • Ruff 0.16.0 lint passes
  • 65/65 tests pass
  • git diff --check

Supersedes Dependabot PR #2, whose raw bump failed because Ruff 0.16 expanded implicit defaults.

Copilot AI review requested due to automatic review settings July 26, 2026 23:54
@evanfollis
evanfollis merged commit d2b15c4 into main Jul 26, 2026
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.5 to 0.16.0 in the test optional 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 thread pyproject.toml
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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants