This Pylint GitHub Action runs pylint command and returns the score.
Action fails if pylint score is less than 10.00/10.
- name: Python linter
id: pylint
uses: docker://reasonsoftware/action-pylint:v3Available tags:
v3- latest stable releasev3-py3- latest stable release with Python 3v3-x.y.z-py3- latest stable release with Python 3 and specific Pylint versionv3-py3.11,v3-py3.12,v3-py3.13,v3-py3.14- latest stable release with selected Python versionv3-x.y.z-py3.11,v3-x.y.z-py3.12,v3-x.y.z-py3.13,v3-x.y.z-py3.14- latest stable release with selected Python version and specific Pylint versionv3-x.y.z-py3.11.14,v3-x.y.z-py3.12.12,v3-x.y.z-py3.13.9,v3-x.y.z-py3.14.0- latest stable release with locked versions
| Input | Description | Default | Required |
|---|---|---|---|
filepaths |
A list of all paths to test. ("*/*.py", "src/") | "." | no |
options |
Extra options | "--recursive=y --rcfile=/pyproject.toml" | no |
requirements_file |
requirements.txt filepath | "" | no |
init_script |
Environment preparation shell script filepath | "" | no |
Details
| Output | Description | Example |
|---|---|---|
score |
Pylint checked score | "10.00/10" |
Pylint failed
🔴 Pylint score 9.18/10
Pylint passed
❕ Pylint score 10.00/10