File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,19 +4,21 @@ Integration with other software
44Integration 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.
88Here 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-------------------------------
You can’t perform that action at this time.
0 commit comments