mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 12:04:24 +02:00
Format .gd files and fix gdformat pre-commit hook
Previously this hook was not being run.
This commit is contained in:
parent
80bcc41855
commit
302bdf0714
5 changed files with 32 additions and 16 deletions
|
@ -13,8 +13,7 @@
|
|||
# pre-commit hooks to be executed. They should be in the same .git/hooks/ folder
|
||||
# as this script. Hooks should return 0 if successful and nonzero to cancel the
|
||||
# commit. They are executed in the order in which they are listed.
|
||||
HOOKS="pre-commit-gdformat"
|
||||
HOOKS="pre-commit-clang-format"
|
||||
HOOKS="pre-commit-gdformat pre-commit-clang-format"
|
||||
###########################################################
|
||||
# There should be no need to change anything below this line.
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i sh -p python38
|
||||
set -e
|
||||
|
||||
GDTOOLKIT_VERSION=f5e2746d146200ec07ac6acb6fb378fd4c64f3f0
|
||||
|
||||
|
@ -11,7 +12,7 @@ if [ ! -f .venv/bin/activate ] || ! source .venv/bin/activate; then
|
|||
python -m venv .venv && source .venv/bin/activate;
|
||||
fi
|
||||
if ! gdformat --version; then
|
||||
pip install git+git://github.com/Scony/godot-gdscript-toolkit@${gdtoolkit_version};
|
||||
pip install git+git://github.com/Scony/godot-gdscript-toolkit@${GDTOOLKIT_VERSION};
|
||||
fi
|
||||
|
||||
# Format all selected files.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue