Skip to content

fix(dev): align ruff pre-commit hook - #5799

Merged
stranske merged 3 commits into
phase-3from
agent/trend-ruff-precommit-5798
Aug 8, 2026
Merged

fix(dev): align ruff pre-commit hook#5799
stranske merged 3 commits into
phase-3from
agent/trend-ruff-precommit-5798

Conversation

@stranske

@stranske stranske commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Companion repair for generated dev-tool sync PR #5798.

Updates only the repo-local ruff-pre-commit hook from v0.16.0 to v0.16.2, aligning it with the canonical Ruff pin. After this lands, Maint 52 should generate a clean replacement for #5798; the generated PR itself remains unmodified.

Summary by CodeRabbit

  • Chores
    • Updated the Ruff code-quality tooling to a newer revision, providing the latest available checks and improvements.

Copilot AI lite review requested due to automatic review settings August 8, 2026 13:34
@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 12 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 56aaaf7c-6547-4f4a-9530-6ea5a474f8ff

📥 Commits

Reviewing files that changed from the base of the PR and between b65f71c and 0d97092.

📒 Files selected for processing (1)
  • .pre-commit-config.yaml
📝 Walkthrough

Walkthrough

The pre-commit configuration updates the Ruff repository revision from v0.16.0 to v0.16.1. The workflow-lint comment remains unchanged.

Changes

Ruff revision update

Layer / File(s) Summary
Update Ruff revision
.pre-commit-config.yaml
The Ruff pre-commit repository revision changes from v0.16.0 to v0.16.1. The workflow-lint comment is unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested labels: dependency:repair-promotion

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: aligning the repository-local Ruff pre-commit hook.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/trend-ruff-precommit-5798

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 repository’s pre-commit configuration to align the ruff-pre-commit hook version with the canonical Ruff pin referenced by the dev-tool sync workflow/PR context.

Changes:

  • Bumped astral-sh/ruff-pre-commit hook rev from v0.16.0 to v0.16.2 in .pre-commit-config.yaml.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c4c1e700fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .pre-commit-config.yaml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.0
rev: v0.16.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the Ruff hook aligned with the canonical pin

Set this revision to v0.16.1 (or update all canonical pins in the same commit): .github/workflows/autofix-versions.env:8 and pyproject.toml:115 still specify Ruff 0.16.1, and scripts/style_gate_local.sh installs the env-file version. Contributors running pre-commit therefore use 0.16.2 while the documented local/CI mirror uses 0.16.1, so patch-specific diagnostics or fixes can make the two quality gates disagree until the anticipated follow-up change lands.

Useful? React with 👍 / 👎.

@stranske
stranske merged commit 7c3f4cf into phase-3 Aug 8, 2026
17 checks passed
@stranske
stranske deleted the agent/trend-ruff-precommit-5798 branch August 8, 2026 17:36
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