Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-pull-request

GitHub Action

PR annotator with ruff

v0.1.19 Pre-release

PR annotator with ruff

git-pull-request

PR annotator with ruff

Annotate pull requests with ruff linter

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PR annotator with ruff

uses: EnriqueSoria/annotate_pr_with_ruff@v0.1.19

Learn more about this action in EnriqueSoria/annotate_pr_with_ruff

Choose a version

Annotate pull requests with ruff

It runs ruff against pull requests changed lines, and creates a review comment with them.

Configuration

name: 'Dependency Review'
on: [pull_request]

jobs:
  dependency-review:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so that annotate_pr_with_ruff can access it.
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10' 
      - name: Install ruff from PyPI
        uses: install-pinned/ruff@vX.X.X # <-- Choose a release version
      - name: PR annotator with ruff
        uses: EnriqueSoria/annotate_pr_with_ruff@vX.X.X  # <-- Choose a release version
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Images

Here's an screenshot of what it can do:

imagen

Credits

I've used typilus/typilus-action as a template for creating this action, which is MIT Licensed.