mirror of
https://github.com/renovatebot/pre-commit-hooks.git
synced 2026-03-29 10:56:54 +00:00
Pre-commit hooks for Renovate
| datasource | package | from | to | | ---------- | -------- | -------- | -------- | | npm | renovate | 41.152.7 | 41.152.8 | Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| .editorconfig | ||
| .pre-commit-config.yaml | ||
| .pre-commit-hooks.yaml | ||
| .python-version | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| requirements.txt | ||
Renovate pre-commit hooks
A pre-commit hook to run renovate-config-validator when you reconfigure Renovate via PR.
Even though it is a Node-based hook, it works without any system-level dependencies.
Usage
For general usage:
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.152.8
hooks:
- id: renovate-config-validator
Or for a tighter configuration, opt into strict mode:
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.152.8
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, for instance to scan for all .json5 files
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.152.8
hooks:
- id: renovate-config-validator
args: [--strict]
files: '.*\\.json5$'