mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-14 14:20:56 +02:00
adjust defaults and docs
This commit is contained in:
parent
216eb850a0
commit
8bf35085a7
|
@ -23,3 +23,4 @@ LINT([0-9]{4})
|
|||
SCM
|
||||
bools
|
||||
Check[A-Z].+
|
||||
(P|p)re-(C|c)ommit
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
description: Run ansible-later, a best-practice scanner for Ansible.
|
||||
entry: ansible-later
|
||||
language: python
|
||||
pass_filenames: True
|
||||
pass_filenames: False
|
||||
always_run: True
|
||||
additional_dependencies:
|
||||
- ansible
|
||||
- .[ansible-core]
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
---
|
||||
title: Pre-Commit
|
||||
title: Pre-Commit setup
|
||||
---
|
||||
|
||||
ansible-later can be used with the [pre-commit][pre-commit] framework:
|
||||
To use `ansible-later` with the [pre-commit](https://pre-commit.com/) framework, add the following to the `.pre-commit-config.yaml` file in your local repository.
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- markdownlint-disable -->
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< highlight yaml "linenos=table" >}}
|
||||
- repo: https://github.com/thegeeklab/ansible-later
|
||||
rev: v3.0.2 # or whatever tag you want
|
||||
# change ref to the latest release from https://github.com/thegeeklab/ansible-later/releases
|
||||
rev: v3.0.2
|
||||
hooks:
|
||||
- id: ansible-later
|
||||
{{< /highlight >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
<!-- markdownlint-restore -->
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
[pre-commit]: https://pre-commit.com/
|
Loading…
Reference in New Issue
Block a user