Skip to content

Commit

Permalink
Update pre-commit instructions in README
Browse files Browse the repository at this point in the history
Signed-off-by: tutunak <[email protected]>
  • Loading branch information
tutunak authored and webknjaz committed Aug 6, 2019
1 parent 01ac084 commit 07b5194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ The following values are supported, and function identically to their CLI counte
Pre-commit Setup
----------------

To use ansible-lint with `pre-commit`_, just add the following to your local repo's ``.pre-commit-config.yaml`` file. Make sure to change **sha:** to be either a git commit sha or tag of ansible-lint containing ``hooks.yaml``.
To use ansible-lint with `pre-commit`_, just add the following to your local repo's ``.pre-commit-config.yaml`` file. Make sure to change **rev:** to be either a git commit sha or tag of ansible-lint containing ``hooks.yaml``.

.. code-block:: yaml
- repo: https://github.com/ansible/ansible-lint.git
sha: v3.3.1
rev: v4.1.0
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
Expand Down

0 comments on commit 07b5194

Please sign in to comment.