Skip to content

chore: update the pre-commit hooks quarterly - #110

Merged
shenxianpeng merged 2 commits into
mainfrom
chore/pre-commit-quarterly
Sep 25, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
chore/pre-commit-quarterly

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

pre-commit.ci checks for new hook versions every week by default and
opens a pull request whenever there is one, and each needs a review.
Once a quarter is enough for linters and formatters, and it is what
cpp-linter/cpp-linter already does. A hook can still be updated by hand
with pre-commit autoupdate when needed.

This repository had no ci settings, so it also gets the ones the
other repositories use, which give pre-commit.ci's pull requests and
commits conventional titles.

Summary by CodeRabbit

  • Chores
    • Enabled automated pull requests for fixes and updates, with quarterly update checks. These changes help keep routine maintenance current while allowing proposed updates to be reviewed before they are applied.

pre-commit.ci checks for new hook versions every week by default and
opens a pull request whenever there is one, and each needs a review.
Once a quarter is enough for linters and formatters, and it is what
cpp-linter/cpp-linter already does. A hook can still be updated by hand
with `pre-commit autoupdate` when needed.

This repository had no `ci` settings, so it also gets the ones the
other repositories use, which give pre-commit.ci's pull requests and
commits conventional titles.
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: c9e9d352-81f9-42df-bbd3-ce7fbd521c72

📥 Commits

Reviewing files that changed from the base of the PR and between 2663c08 and fd76dda.

📒 Files selected for processing (1)
  • .github/workflows/main.yml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The pre-commit configuration adds autofix and autoupdate settings. The main workflow changes the reusable pre-commit workflow reference.

Changes

Pre-commit CI settings

Layer / File(s) Summary
Configure pre-commit CI
.pre-commit-config.yaml, .github/workflows/main.yml
The configuration enables autofix pull requests, sets autofix and autoupdate commit messages, and schedules quarterly autoupdates. The main job changes its reusable workflow reference.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Merge Risk: ⚪ Minimal · up to fd76d

The quarterly hook-update settings and workflow references have no identified merge-blocking issue. The change is ready for normal checks.

Architecture Summary

Architecture risk: 🔵 Low · up to fd76d

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .pre-commit-config.yaml: Adds CI settings to enable autofix pull requests, configure autofix and autoupdate commit messages, and schedule autoupdates quarterly.
  • observed — Modified behavior in .github/workflows/main.yml: The main job’s reusable workflow reference changed from ./.github/workflows/pre-commit.yml to /$/.github/workflows/pre-commit.yml.
🚥 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 primary change: changing the pre-commit hook update schedule to quarterly. It is concise and specific.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

satisfies new zizmor lint
@shenxianpeng
shenxianpeng merged commit 65994fe into main Sep 25, 2026
9 checks passed
@shenxianpeng
shenxianpeng deleted the chore/pre-commit-quarterly branch September 25, 2026 19:35
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