File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
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'
You can’t perform that action at this time.
0 commit comments