Skip to content

docs: add workflow badge to README.md #9

docs: add workflow badge to README.md

docs: add workflow badge to README.md #9

Workflow file for this run

name: Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Run Ruff linting
uses: astral-sh/ruff-action@v1.1.1
with:
args: "check --fix"
changed-files: "true"
- name: Run Ruff formatting
uses: astral-sh/ruff-action@v1.1.1
with:
args: "format"
changed-files: "true"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: "ruff: fix and apply formatting"