File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Pylint
22
3- on : [push]
3+ on : [push, pull_request ]
44
55jobs :
6- build :
6+ lint :
77 runs-on : ubuntu-latest
8- strategy :
9- matrix :
10- python-version : ["3.12"]
8+
119 steps :
1210 - uses : actions/checkout@v4
13- - name : Set up Python ${{ matrix.python-version }}
14- uses : actions/setup-python@v3
11+
12+ - name : Run Pylint with badge support
13+ uses : Silleellie/pylint-github-action@v2.1
1514 with :
16- python-version : ${{ matrix.python-version }}
17- - name : Install dependencies
18- run : |
19- python -m pip install --upgrade pip
20- pip install pylint
21- - name : Analysing the code with pylint
22- run : |
23- pylint $(git ls-files '*.py')
15+ lint-path : |
16+ src
17+ python-version : 3.12
18+ requirements-path : requirements.txt
19+ readme-path : README.md # This line enables automatic badge updates
20+ pylintrc-path : .pylintrc # Optional, if you use one
21+ badge-text : PyLint
22+ color-bad-score : red
23+ color-ok-score : orange
24+ color-good-score : yellow
25+ color-perfect-score : brightgreen
You can’t perform that action at this time.
0 commit comments