Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d028543

Browse files
authored
Create fixer.yml
1 parent d04fab6 commit d028543

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/fixer.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Fixer
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: fixer-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.event.pull_request.number) || github.workflow_ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
ruff-lint:
11+
name: Ruff
12+
runs-on: ubuntu-latest
13+
permissions:
14+
# Give the default GITHUB_TOKEN write permission to commit and push the
15+
# added or changed files to the repository.
16+
contents: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.head_ref }}
22+
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.12'
26+
cache: 'pip'
27+
28+
- uses: chartboost/ruff-action@v1
29+
with:
30+
args: 'check --preview --fix-only'
31+
32+
- uses: stefanzweifel/git-auto-commit-action@v5
33+
with:
34+
commit_message: 'style fixes by ruff'

0 commit comments

Comments
 (0)