Skip to content

Commit

Permalink
Add ruff formatting as an action
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLoecker committed Oct 13, 2024
1 parent aaffd9c commit a248ab0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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"

0 comments on commit a248ab0

Please sign in to comment.