mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
This patch disables ansible-lint `always_run` flag, as this was making patches that did not change any YAML file take longer in the pre-commit step, as ansible-lint was executed with no parameter, thus, searching and evaluating all YAML files in the repository. With this change, if no YAML file is modified, ansible-lint is skipped.
32 lines
797 B
YAML
32 lines
797 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/ansible/ansible-lint.git
|
|
rev: v4.3.5
|
|
hooks:
|
|
- id: ansible-lint
|
|
always_run: false
|
|
pass_filenames: true
|
|
files: \.(yaml|yml)$
|
|
entry: env ANSIBLE_LIBRARY=./plugins/modules ANSIBLE_MODULE_UTILS=./plugins/module_utils ansible-lint --force-color
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.25.0
|
|
hooks:
|
|
- id: yamllint
|
|
files: \.(yaml|yml)$
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 3.8.4
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://gitlab.com/pycqa/pydocstyle
|
|
rev: 5.1.1
|
|
hooks:
|
|
- id: pydocstyle
|
|
- repo: local
|
|
hooks:
|
|
- id: ansible-doc-test
|
|
name: Verify Ansible roles and module documentation.
|
|
language: script
|
|
entry: utils/ansible-doc-test
|
|
# args: ['-v', 'roles', 'plugins']
|
|
files: ^.*.py$
|