Skip to content

Output lint errors in GitHub format for easier review #69

Output lint errors in GitHub format for easier review

Output lint errors in GitHub format for easier review #69

Workflow file for this run

name: "Lint"
on:
push:
pull_request:
permissions:
contents: write
jobs:
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/[email protected]"
- name: "Set up Python"
uses: actions/[email protected]
with:
python-version: "3.12.4"
cache: "pip"
- name: "Install requirements"
run: python3 -m pip install -r requirements.txt
- name: "Format"
run: python3 -m ruff format .
- name: "Check"
run: python3 -m ruff check --output-format=github . --fix --exit-zero
- name: "Auto Commit"
uses: stefanzweifel/[email protected]
with:
commit_message: 'style fixes by ruff'