mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-12 21:50:26 +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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-code-format:
|
check-pre-commit:
|
||||||
name: "Check Code Format"
|
name: "Check Pre-Commit"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: pre-commit/action@v3.0.1
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: GDFormat Check
|
|
||||||
run: |
|
|
||||||
python -m pip install -r requirements.txt
|
|
||||||
gdformat -c .
|
|
||||||
|
|
|
@ -13,3 +13,8 @@ repos:
|
||||||
rev: v3.1.0
|
rev: v3.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- 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