-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 971 Bytes
/
pylint.yml
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
name: Pylint
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
# Disable C0103: invalid name
# W0311: Bad indentation. (Decided to use 2 spaces instead of 4)
# E0401: Import errors
# R0801: Similar lines
# R0912: Too many branches
# R0913: Too many arguments
# R0914: Too many local variables
# R0915: Too many statements
pylint --disable C0103,W0311,E0401,R0801,R0912,R0913,R0914,R0915 $(git ls-files '*.py' | grep -v "docs/" | grep -v setup.py)