https://github.com/reasonsoftware/action-pylint
Pylint GitHub Action
https://github.com/reasonsoftware/action-pylint
action cd ci github-actions linter pylint python python3
Last synced: 9 months ago
JSON representation
Pylint GitHub Action
- Host: GitHub
- URL: https://github.com/reasonsoftware/action-pylint
- Owner: ReasonSoftware
- License: apache-2.0
- Created: 2023-12-05T14:32:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T18:25:35.000Z (about 1 year ago)
- Last Synced: 2025-02-26T07:34:29.035Z (about 1 year ago)
- Topics: action, cd, ci, github-actions, linter, pylint, python, python3
- Language: Shell
- Homepage: https://github.com/marketplace/actions/pylint-github-action
- Size: 35.2 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Python Linter GitHub Action
[](https://github.com/ReasonSoftware/action-pylint/actions/workflows/release.yml)
[](https://github.com/ReasonSoftware/action-pylint/releases/latest)
[](https://www.python.org/downloads/release/python-31211/)
[](https://pypi.org/project/pylint/)
[](https://www.debian.org/releases/bookworm/)
[](https://hub.docker.com/r/reasonsoftware/action-pylint)
[](LICENSE.md)
## Overview
This **Pylint GitHub Action** runs pylint command and returns the score.
Action fails if pylint score is less than 10.00/10.
```yaml
- name: Python linter
id: pylint
uses: docker://reasonsoftware/action-pylint:v2
```
## Inputs
| _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 |
## Outputs
| _Output_ | _Description_ | _Example_ |
|:--------:|:--------------------:|:----------:|
| `score` | Pylint checked score | "10.00/10" |
## Annotations
Pylint failed
:red_circle: Pylint score
9.18/10
Pylint passed
:grey_exclamation: Pylint score
10.00/10
## License
[Apache-2.0](LICENSE.md) © 2023 [Reason Cybersecurity Ltd.](https://www.reasonsecurity.com/)