Skip to content

Commit

Permalink
chore(ci): Add Python linting workflow to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deplayer authored Oct 29, 2024
1 parent 4354da3 commit 394526a
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: Lint and Commit
on: [ push, pull_request ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

- uses: astral-sh/ruff-action@v1
with:
args: --check .
fix_args: --fix .

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: Style fixes by ruff'

0 comments on commit 394526a

Please sign in to comment.