Skip to content

Add a GitHub actions workflow for the ruff formatter and linter #2

Add a GitHub actions workflow for the ruff formatter and linter

Add a GitHub actions workflow for the ruff formatter and linter #2

Workflow file for this run

name: Ruff
on: [push, pull_request]
env:
RUFF_VERSION: 0.11.4
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
version: ${{ env.RUFF_VERSION }}
args: check --output-format=github
- uses: astral-sh/ruff-action@v3
with:
version: ${{ env.RUFF_VERSION }}
args: format --diff