Skip to content

Commit

Permalink
Updated the ruff GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Shekswess committed Aug 19, 2024
1 parent 009921c commit 4463db3
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/python-formating.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Check lint format and commit with ruff
on: [push, pull_request]
name: Lint and Commit
on: push

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: chartboost/ruff-action@v1
with:
args: --check .
fix_args: --fix .
config: .ruff.toml
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style fixes by ruff'
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install ruff
- run: |
ruff check .
ruff fix .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style fixes by ruff'

0 comments on commit 4463db3

Please sign in to comment.