Pylint GitHub Actions Plugin

raw JSON →
0.6.0 verified Fri May 01 auth: no python

A Pylint plugin that formats output as GitHub Actions annotations. Version 0.6.0 requires Python >=3.9 and is actively maintained. Releases are infrequent but stable.

pip install pylint-actions
error ModuleNotFoundError: No module named 'pylint_actions'
cause Package not installed in the current Python environment.
fix
Run pip install pylint-actions.
error pylint: error: argument --load-plugins: invalid choice: 'pylint_actions'
cause Plugin not installed or pylint version mismatch.
fix
Ensure pylint-actions is installed and compatible with your pylint version.
breaking Version 0.6.0 drops support for Python 3.8 and earlier.
fix Upgrade Python to >=3.9 or pin pylint-actions to <0.6.0.
gotcha The plugin must be loaded before running pylint; otherwise, annotations won't appear.
fix Use `--load-plugins=pylint_actions` or call `register_actions()` before `Run()`.
gotcha Annotations only work in a GitHub Actions environment. Local runs will print regular pylint output.
fix No fix needed; it's by design. Use environment variable detection if you want conditional behavior.

Register the plugin before running pylint to format output as GitHub Actions annotations.

# Run pylint with the plugin
# Command line: pylint --load-plugins=pylint_actions my_package

# In a Python script:
from pylint.lint import Run
from pylint_actions import register_actions

register_actions()
results = Run(['my_package'], do_exit=False)