Skip to content

ReasonSoftware/action-pylint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Python Linter GitHub Action

CI Release Python Pylint Debian Docker Pulls License

Overview

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:v1

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

🔴 Pylint score 9.18/10

Pylint passed

❕ Pylint score 10.00/10

License

Apache-2.0 © 2023 Reason Cybersecurity Ltd.