Skip to content

fix: replace deprecated builtin repo in pre-commit config#219

Closed
Abdelsalam-Abbas wants to merge 1 commit intomainfrom
fix-precommit-config
Closed

fix: replace deprecated builtin repo in pre-commit config#219
Abdelsalam-Abbas wants to merge 1 commit intomainfrom
fix-precommit-config

Conversation

@Abdelsalam-Abbas
Copy link
Copy Markdown
Contributor

Summary

  • Replace repo: builtin with repo: https://github.com/pre-commit/pre-commit-hooks (rev v5.0.0) in .pre-commit-config.yaml
  • The builtin syntax was removed in pre-commit 4.0, causing InvalidConfigError for anyone on pre-commit 4.x
  • No behavior change -- same hooks (check-added-large-files, check-merge-conflict, check-yaml, end-of-file-fixer, trailing-whitespace)

Test plan

  • pre-commit run --all-files passes with pre-commit 4.5.1

The 'repo: builtin' syntax was removed in pre-commit 4.0. Replace with
the explicit pre-commit-hooks repo URL so hooks work on pre-commit 4.x.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 11, 2026

Warning

Rate limit exceeded

@Abdelsalam-Abbas has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 46 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 46 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ef9d4c1f-40ab-4988-9067-86b0439f0fbf

📥 Commits

Reviewing files that changed from the base of the PR and between f57044e and ae57cd5.

📒 Files selected for processing (1)
  • .pre-commit-config.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-precommit-config

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 and usage tips.

@Abdelsalam-Abbas
Copy link
Copy Markdown
Contributor Author

Closing -- the team uses prek (not pre-commit), which supports repo: builtin fine. The issue was only on my side from running pre-commit install instead of prek install.

@k-chrispens k-chrispens deleted the fix-precommit-config branch April 22, 2026 00:26
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.

1 participant