Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.9 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.9 KB

Annotate code with pylint linting results

GitHub Super-Linter CI

GitHub Action that annotates code with pylint linting results captured using pylint *.py --output-format=json2:pylint.json.

Usage

Recommended usage with Pylint action

Basic

You need to add permissions for this tool.

permissions:
  contents: read
  checks: write
uses: karpikpl/[email protected]
with:
  lint-file: pylint.json
  pylint-result-code: 0
  head-sha: abcd1234

Inputs

head-sha

Optional SHA of the commit to annotate. Defaults to github.sha - current commit.

lint-file

Optional Linting JSON results file from Pylint. Defaults to pylint.json

pylint-result-code

Optional Pylint result code to consider as an error. Defaults to 0.

repo-owner

Optional Another repository owner, If not set, the current repository owner is used by default. Note that when you trying changing a repository, be aware that GITHUB_TOKEN should also have permission for that repository.

repo-name

Optional Another repository name. Of limited use on GitHub enterprise. If not set, the current repository is used by default. Note that when you trying changing a repository, be aware that GITHUB_TOKEN should also have permission for that repository.

repo-token

Optional, You can set PAT here. If not set, this will use ${{ github.token }}.

Outputs

result

The result of the action. Success, Failure or information message. Useful for debugging.