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:v2
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 |
Output | Description | Example |
---|---|---|
score |
Pylint checked score | "10.00/10" |
Pylint failed
🔴 Pylint score 9.18/10
Pylint passed
❕ Pylint score 10.00/10