mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
Perform GDScript format checks using pre-commit
This commit is contained in:
parent
b6f1ec00fb
commit
21891925ee
3 changed files with 8 additions and 10 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -302,15 +302,9 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
check-code-format:
|
||||
name: "Check Code Format"
|
||||
check-pre-commit:
|
||||
name: "Check Pre-Commit"
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: GDFormat Check
|
||||
run: |
|
||||
python -m pip install -r requirements.txt
|
||||
gdformat -c .
|
||||
- uses: pre-commit/action@v3.0.1
|
||||
|
|
|
@ -13,3 +13,8 @@ repos:
|
|||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
- repo: https://github.com/Scony/godot-gdscript-toolkit
|
||||
rev: 3.5.0
|
||||
hooks:
|
||||
- id: gdformat
|
||||
exclude: "^addons/gut/"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
gdtoolkit==3.5.0
|
Loading…
Reference in a new issue