Skip to content

Add PR review Action (reviewdog): flake8, pylint, bandit (PR-only) - #324

Open
haricharan-candela wants to merge 2 commits into
greearb:masterfrom
goyalsaurabh06:code_review_action
Open

Add PR review Action (reviewdog): flake8, pylint, bandit (PR-only)#324
haricharan-candela wants to merge 2 commits into
greearb:masterfrom
goyalsaurabh06:code_review_action

Conversation

@haricharan-candela

@haricharan-candela haricharan-candela commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Adds a PR-only review workflow that posts inline lint/security feedback on changed Python files.

What it does:

  • Runs on pull_request (opened/synchronize/reopened/edited).

  • Lints only changed .py files with flake8, pylint and bandit.

  • Posts inline comments via reviewdog; skips if no Python files changed.

  • Installs reviewdog binary (no extra secrets; uses GITHUB_TOKEN).

Proposed Pre-commit.yaml file:

repos:

rev: v4.5.0

hooks:

rev: 6.0.0

hooks:

  • id: flake8

args: [--max-line-length=88]

rev: v2.16.0

hooks:

  • id: pylint
    Consider limiting messages or using a pylintrc to reduce noise

args: []

rev: 1.9.4

hooks:

  • id: bandit

args: [-r, .]

How this is tested:

Example PR review done by these changes(Please check this):
Reviewed PR

Signed-off-by: haricharan-candela <haricharan.jaka@candelatech.com>
Signed-off-by: haricharan-candela <haricharan.jaka@candelatech.com>
@haricharan-candela
haricharan-candela marked this pull request as ready for review August 2, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant