File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,9 @@ name: Format
22
33on :
44 push :
5- branches :
6- - main
75 paths :
86 - ' utils/**'
97 pull_request :
10- branches :
11- - main
128 paths :
139 - ' utils/**'
1410
@@ -30,18 +26,10 @@ jobs:
3026 run : |
3127 pip install ruff isort
3228
33- - name : Run Ruff formatter
29+ - name : Run Ruff check
3430 run : |
35- ruff format utils/
31+ ruff check utils/
3632
37- - name : Run isort
33+ - name : Run isort check
3834 run : |
39- isort utils/
40-
41- - name : Commit and push changes
42- run : |
43- git config --global user.name "github-actions[bot]"
44- git config --global user.email "github-actions[bot]@users.noreply.github.com"
45- git add utils/
46- git commit -m "Auto-format: Applied ruff format and isort" || exit 0
47- git push
35+ isort --check-only utils/
You can’t perform that action at this time.
0 commit comments