-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1.35 KB
/
pylint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: pylint
on:
pull_request:
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/run-crucible-tracking.yaml
- .github/workflows/crucible-merged.yaml
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-roadblock-ci.yaml
- .github/workflows/faux-pylint.yaml
- 'docs/**'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}/pylint
cancel-in-progress: true
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install redis
pip install jsonschema
- name: Analysing the code with pylint
run: |
python_files=$(find . -name "*.py")
pylint --disable=too-many-locals --disable=line-too-long --disable=too-many-lines --disable=too-many-return-statements --disable=too-many-branches --disable=too-many-statements --disable=too-many-branches --disable=too-many-nested-blocks --disable=no-else-return --disable=too-many-arguments --disable=unused-argument --disable=invalid-name --disable=too-many-instance-attributes --disable=consider-using-with --disable=too-many-public-methods ${python_files}