Skip to content

Run ruff format in pre-commit and CI workflow #4

Run ruff format in pre-commit and CI workflow

Run ruff format in pre-commit and CI workflow #4

Workflow file for this run

name: Linting
on:
push:
paths: &path-list
- '**/*.py'
pull_request:
paths: *path-list
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Ruff lint
uses: astral-sh/ruff-action@v3
with:
args: "check --output-format=github"
- name: Ruff format check
uses: astral-sh/ruff-action@v3
with:
args: "format --diff"