mirror of
https://github.com/renovatebot/pre-commit-hooks.git
synced 2026-04-12 17:54:18 +00:00
Added links and mentioned --strict
This commit is contained in:
parent
98acf6035e
commit
863e23e57d
1 changed files with 17 additions and 1 deletions
18
README.md
18
README.md
|
|
@ -1,11 +1,15 @@
|
||||||
# Renovate pre-commit hooks
|
# 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).
|
Even though it is a Node-based hook, it works [without any system-level dependencies](https://pre-commit.com/#node).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
For general usage:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/renovatebot/pre-commit-hooks
|
- repo: https://github.com/renovatebot/pre-commit-hooks
|
||||||
|
|
@ -13,3 +17,15 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: renovate-config-validator
|
- 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