mirror of
https://github.com/renovatebot/pre-commit-hooks.git
synced 2026-04-02 12:56:53 +00:00
docs: Added README.md links and documented --strict (#2475)
This commit is contained in:
parent
dbecf48408
commit
f9bb814dee
1 changed files with 15 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -1,11 +1,13 @@
|
|||
# Renovate pre-commit hooks
|
||||
|
||||
A [pre-commit](https://pre-commit.com/) hook to run `renovate-config-validator` when you [reconfigure Renovate via PR](https://docs.renovatebot.com/getting-started/installing-onboarding/#reconfigure-via-pr).
|
||||
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
|
||||
|
|
@ -13,3 +15,15 @@ repos:
|
|||
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: 38.128.6
|
||||
hooks:
|
||||
- id: renovate-config-validator
|
||||
args: [--strict]
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue