adjust defaults and docs

This commit is contained in:
Robert Kaussow 2023-02-10 10:03:23 +01:00
parent 216eb850a0
commit 8bf35085a7
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 9 additions and 7 deletions

View File

@ -23,3 +23,4 @@ LINT([0-9]{4})
SCM
bools
Check[A-Z].+
(P|p)re-(C|c)ommit

View File

@ -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]

View File

@ -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/