File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,21 @@ Integration with other software
4
4
Integration with pre-commit
5
5
---------------------------
6
6
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.
8
8
Here is an example, to add in your .pre-commit-config.yaml
9
9
10
10
.. code :: yaml
11
11
12
12
---
13
13
# Update the rev variable with the release version that you want, from the yamllint repo
14
14
# 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
+
20
22
21
23
Integration with GitHub Actions
22
24
-------------------------------
You can’t perform that action at this time.
0 commit comments