Skip to content

Commit 8aaa226

Browse files
authored
docs: Update pre-commit hook example
Update syntax of pre-commit hook docs to work with newer pre-commit versions. Closes #551, #553
1 parent 15f8204 commit 8aaa226

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/integration.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ Integration with other software
44
Integration with pre-commit
55
---------------------------
66

7-
You can integrate yamllint in `pre-commit <http://pre-commit.com/>`_ tool.
7+
You can integrate yamllint in the `pre-commit <https://pre-commit.com/>`_ tool.
88
Here is an example, to add in your .pre-commit-config.yaml
99

1010
.. code:: yaml
1111
1212
---
1313
# Update the rev variable with the release version that you want, from the yamllint repo
1414
# You can pass your custom .yamllint with args attribute.
15-
- repo: https://github.com/adrienverge/yamllint.git
16-
rev: v1.17.0
17-
hooks:
18-
- id: yamllint
19-
args: [-c=/path/to/.yamllint]
15+
repos:
16+
- repo: https://github.com/adrienverge/yamllint.git
17+
rev: v1.29.0
18+
hooks:
19+
- id: yamllint
20+
args: [--strict, -c=/path/to/.yamllint]
21+
2022
2123
Integration with GitHub Actions
2224
-------------------------------

0 commit comments

Comments
 (0)