renovatebot-pre-commit-hooks/README.md
renovate[bot] 798c3b44a3
chore(deps): update dependency renovate to v39 (#2627)
| datasource | package  | from     | to      |
| ---------- | -------- | -------- | ------- |
| npm        | renovate | 38.128.6 | 39.49.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 09:26:19 +01:00

29 lines
885 B
Markdown

# 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: 39.49.3
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: 39.49.3
hooks:
- id: renovate-config-validator
args: [--strict]
```