Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

renovatebot/pre-commit-hooks

Open more actions menu

Repository files navigation

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: 42.66.2
    hooks:
      - id: renovate-config-validator

Or for a tighter configuration, opt into strict mode:

repos:
  - repo: https://github.com/renovatebot/pre-commit-hooks
    rev: 42.66.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, for instance to scan for all .json5 files

repos:
  - repo: https://github.com/renovatebot/pre-commit-hooks
    rev: 42.66.2
    hooks:
      - id: renovate-config-validator
        args: [--strict]
        files: '.*\\.json5$'

About

Pre-commit hooks for Renovate

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors 8

Morty Proxy This is a proxified and sanitized view of the page, visit original site.