Skip to content

Commit d41b727

Browse files
committed
CI: Replace pre-commit with prek
(cherry picked from commit 9c81dfa)
1 parent 4182805 commit d41b727

3 files changed

Lines changed: 3 additions & 29 deletions

File tree

.github/actions/pre-commit/action.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/static_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
files=$(echo "$files" | xargs -I {} sh -c 'echo "\"./{}\""' | tr '\n' ' ')
3131
echo "CHANGED_FILES=$files" >> $GITHUB_ENV
3232
33-
- name: Style checks via pre-commit
34-
uses: ./.github/actions/pre-commit
33+
- name: Style checks via prek
34+
uses: j178/prek-action@v2
3535
with:
36-
extra_args: --files ${{ env.CHANGED_FILES }}
36+
extra-args: --files ${{ env.CHANGED_FILES }}
3737

3838
- name: Class reference schema checks
3939
run: |

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
###########################
2424

2525
/custom.py
26-
misc/hooks/pre-commit-custom-*
2726

2827
#############################
2928
### Godot generated files ###

0 commit comments

Comments
 (0)