docs: Fix pre-commit config file

* pre-commit show warning for unsupported key (sha)
* Demonstrate how to use custom yamllint
pull/205/head
Hossein Zolfi 5 years ago committed by Adrien Vergé
parent f3d9196aa0
commit 579a975b70

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

Loading…
Cancel
Save