You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
571 B
ReStructuredText
20 lines
571 B
ReStructuredText
Integration with other software
|
|
===============================
|
|
|
|
Integration with pre-commit
|
|
---------------------------
|
|
|
|
You can integrate yamllint in `pre-commit <http://pre-commit.com/>`_ tool.
|
|
Here is an example, to add in your .pre-commit-config.yaml
|
|
|
|
.. code:: yaml
|
|
|
|
---
|
|
# 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
|
|
rev: v1.17.0
|
|
hooks:
|
|
- id: yamllint
|
|
args: [-c=/path/to/.yamllint]
|