docs: Fix pre-commit config file

* pre-commit show warning for unsupported key (sha)
* Demonstrate how to use custom yamllint
This commit is contained in:
Hossein Zolfi
2019-10-01 12:00:33 +03:30
committed by Adrien Vergé
parent f3d9196aa0
commit 579a975b70

View File

@@ -10,8 +10,10 @@ Here is an example, to add in your .pre-commit-config.yaml
.. code:: yaml
---
# Update the sha 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.
- repo: https://github.com/adrienverge/yamllint.git
sha: v1.8.1
rev: v1.17.0
hooks:
- id: yamllint
args: [-c=/path/to/.yamllint]