mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +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.
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
---
|
|
name: Run Linters
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
ansible_lint:
|
|
name: Verify ansible-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Run ansible-lint
|
|
uses: ansible/ansible-lint-action@master
|
|
with:
|
|
targets: |
|
|
tests/*.yml
|
|
tests/*/*.yml
|
|
tests/*/*/*.yml
|
|
playbooks/*.yml
|
|
playbooks/*/*.yml
|
|
env:
|
|
ANSIBLE_MODULE_UTILS: plugins/module_utils
|
|
ANSIBLE_LIBRARY: plugins/modules
|
|
ANSIBLE_DOC_FRAGMENT_PLUGINS: plugins/doc_fragments
|
|
|
|
yamllint:
|
|
name: Verify yamllint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Run yaml-lint
|
|
uses: ibiqlik/action-yamllint@v1
|
|
|
|
pydocstyle:
|
|
name: Verify pydocstyle
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Run pydocstyle
|
|
run: |
|
|
pip install pydocstyle
|
|
pydocstyle
|
|
|
|
flake8:
|
|
name: Verify flake8
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Run flake8
|
|
run: |
|
|
pip install flake8
|
|
flake8
|
|
|
|
pylint:
|
|
name: Verify pylint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Run pylint
|
|
run: |
|
|
pip install pylint==2.10.2
|
|
pylint plugins --disable=import-error
|