Pre-commit hooks for Renovate
Find a file
renovate[bot] 8b96eb338e
chore(deps): update dependency renovate to v41.163.1 (#3600)
| datasource | package  | from     | to       |
| ---------- | -------- | -------- | -------- |
| npm        | renovate | 41.163.0 | 41.163.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 20:28:45 +00:00
.github chore(deps): update mikefarah/yq action to v4.48.1 (#3533) 2025-10-12 04:24:05 +00:00
.editorconfig feat: Initial commit 2022-01-25 17:03:32 -08:00
.pre-commit-config.yaml chore(deps): update dependency renovate to v41.163.1 (#3600) 2025-10-27 20:28:45 +00:00
.pre-commit-hooks.yaml chore(deps): update dependency renovate to v41.163.1 (#3600) 2025-10-27 20:28:45 +00:00
.python-version chore(deps): update python docker tag to v3.14.0 (#3515) 2025-10-07 23:40:51 +00:00
LICENSE feat: Initial commit 2022-01-25 17:03:32 -08:00
package.json feat: Initial commit 2022-01-25 17:03:32 -08:00
README.md chore(deps): update dependency renovate to v41.163.1 (#3600) 2025-10-27 20:28:45 +00:00
renovate.json chore(config): migrate renovate config (#2990) 2025-05-19 13:15:29 +00:00
requirements.txt chore(deps): update dependency pre-commit to v4.3.0 (#3280) 2025-08-09 19:19:43 +00:00

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.163.1
    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.163.1
    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.163.1
    hooks:
      - id: renovate-config-validator
        args: [--strict]
        files: '.*\\.json5$'