https://github.com/renovatebot/pre-commit-hooks
Pre-commit hooks for Renovate
https://github.com/renovatebot/pre-commit-hooks
pre-commit renovate
Last synced: 4 days ago
JSON representation
Pre-commit hooks for Renovate
- Host: GitHub
- URL: https://github.com/renovatebot/pre-commit-hooks
- Owner: renovatebot
- License: mit
- Created: 2022-01-25T23:01:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-11T23:30:00.000Z (about 1 month ago)
- Last Synced: 2026-02-12T06:26:47.006Z (about 1 month ago)
- Topics: pre-commit, renovate
- Homepage:
- Size: 3.66 MB
- Stars: 46
- Watchers: 0
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Renovate pre-commit hooks
A [pre-commit](https://pre-commit.com/) hook to run [`renovate-config-validator`](https://docs.renovatebot.com/config-validation/#config-validation) when you [reconfigure Renovate via PR](https://docs.renovatebot.com/getting-started/installing-onboarding/#reconfigure-via-pr).
Even though it is a Node-based hook, it works [without any system-level dependencies](https://pre-commit.com/#node).
## Usage
For general usage:
```yaml
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.59.2
hooks:
- id: renovate-config-validator
```
Or for a tighter configuration,
opt into [strict mode](https://docs.renovatebot.com/config-validation/#strict-mode):
```yaml
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.59.2
hooks:
- id: renovate-config-validator
args: [--strict]
```
If you run into Heap Size issues try to set ENV `NODE_OPTIONS` with value `"--max-old-space-size=4096"`.
## Override hook configuration
You can override the configuration in [pre-commit-hooks.yaml](.pre-commit-hooks.yaml), for instance to scan for all `.json5` files
```yaml
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.59.2
hooks:
- id: renovate-config-validator
args: [--strict]
files: '.*\\.json5$'
```