mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-22 07:36:25 -06:00
docs: Update pre-commit hook example
Update syntax of pre-commit hook docs to work with newer pre-commit versions. Closes #551, #553
This commit is contained in:
parent
15f8204427
commit
8aaa226830
@ -4,7 +4,7 @@ Integration with other software
|
|||||||
Integration with pre-commit
|
Integration with pre-commit
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
You can integrate yamllint in `pre-commit <http://pre-commit.com/>`_ tool.
|
You can integrate yamllint in the `pre-commit <https://pre-commit.com/>`_ tool.
|
||||||
Here is an example, to add in your .pre-commit-config.yaml
|
Here is an example, to add in your .pre-commit-config.yaml
|
||||||
|
|
||||||
.. code:: yaml
|
.. code:: yaml
|
||||||
@ -12,11 +12,13 @@ Here is an example, to add in your .pre-commit-config.yaml
|
|||||||
---
|
---
|
||||||
# Update the rev variable with the release version that you want, from the yamllint repo
|
# Update the rev variable with the release version that you want, from the yamllint repo
|
||||||
# You can pass your custom .yamllint with args attribute.
|
# You can pass your custom .yamllint with args attribute.
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
repos:
|
||||||
rev: v1.17.0
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
hooks:
|
rev: v1.29.0
|
||||||
- id: yamllint
|
hooks:
|
||||||
args: [-c=/path/to/.yamllint]
|
- id: yamllint
|
||||||
|
args: [--strict, -c=/path/to/.yamllint]
|
||||||
|
|
||||||
|
|
||||||
Integration with GitHub Actions
|
Integration with GitHub Actions
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user