From 579a975b7056f15e5a5a88cbe9fda9bdd6dccaae Mon Sep 17 00:00:00 2001 From: Hossein Zolfi Date: Tue, 1 Oct 2019 12:00:33 +0330 Subject: [PATCH] docs: Fix pre-commit config file * pre-commit show warning for unsupported key (sha) * Demonstrate how to use custom yamllint --- docs/integration.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/integration.rst b/docs/integration.rst index da67d7f..3457556 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -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]