Skip to content

Commit

Permalink
Create fixer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Aug 15, 2024
1 parent d04fab6 commit d028543
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Fixer

on: [push, pull_request]

concurrency:
group: fixer-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.event.pull_request.number) || github.workflow_ref }}
cancel-in-progress: true

jobs:
ruff-lint:
name: 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
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- uses: chartboost/ruff-action@v1
with:
args: 'check --preview --fix-only'

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

0 comments on commit d028543

Please sign in to comment.