Skip to content

Commit 9af8458

Browse files
Update pylint.yml
1 parent 305f4cf commit 9af8458

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/pylint.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
name: Pylint
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
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

0 commit comments

Comments
 (0)