mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
This PR sets pylint to version 2.10.2 in all linter actions, and fixes code in plugins so that this version new checks are either satisfied or ignored if needed.
39 lines
985 B
YAML
39 lines
985 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/ansible/ansible-lint.git
|
|
rev: v5.1.2
|
|
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_DOC_FRAGMENT_PLUGINS=./plugins/doc_fragments ansible-lint --force-color
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.26.1
|
|
hooks:
|
|
- id: yamllint
|
|
files: \.(yaml|yml)$
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 3.9.2
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://gitlab.com/pycqa/pydocstyle
|
|
rev: 6.1.1
|
|
hooks:
|
|
- id: pydocstyle
|
|
- repo: https://github.com/pycqa/pylint
|
|
rev: v2.10.2
|
|
hooks:
|
|
- id: pylint
|
|
args:
|
|
- --disable=import-error
|
|
files: \.py$
|
|
- repo: local
|
|
hooks:
|
|
- id: ansible-doc-test
|
|
name: Verify Ansible roles and module documentation.
|
|
language: python
|
|
entry: utils/ansible-doc-test
|
|
# args: ['-v', 'roles', 'plugins']
|
|
files: ^.*.py$
|