Skip to content

Commit

Permalink
Create ruff.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benkiel authored Nov 2, 2024
1 parent c9a8b7b commit 0e549c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: "format --fix"
changed-files: "true"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Format fixes by ruff'

0 comments on commit 0e549c5

Please sign in to comment.