Skip to content

Add ruff formatting as an action #1

Add ruff formatting as an action

Add ruff formatting as an action #1

Workflow file for this run

name: Format
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Format imports
uses: astral-sh/ruff-action@v1
with:
args: "check --fix --select I"
changed-files: "true"
- name: Format code
uses: astral-sh/ruff-action@v1
with:
changed-files: "true"