Skip to content

Commit

Permalink
add a .ruff.toml and a ruff.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Mar 22, 2024
1 parent 8cf3b81 commit 2afa582
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
pull_request:
push:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- run: |
ruff check .
ruff fix .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style fixes by ruff'


8 changes: 8 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
line-length = 120
indent-width = 4

fixable = ["ALL"]
unfixable = []

[format]
line-ending = "lf"

0 comments on commit 2afa582

Please sign in to comment.