Skip to content

Annotate Commit with Pylint Results

Actions
Adds file annotations to a commit based on Pylint results
v1.1.2
Latest
Star (0)

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.

Annotate Commit with Pylint Results is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Adds file annotations to a commit based on Pylint results
v1.1.2
Latest

Annotate Commit with Pylint Results is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.