Skip to content

Commit 4738e00

Browse files
authored
pre-commit config update (#309)
* remove deprecated `--safe` flag from formatter pre-commit call It is not replaced with `--verify-structure` to give the user freedom and control. * add lint command as pre-commit hook
1 parent 105835f commit 4738e00

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.pre-commit-hooks.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
- id: gdscript-formatter
22
name: GDScript Formatter
33
description: Format GDScript files with gdscript-formatter
4-
entry: gdscript-formatter --safe
4+
entry: gdscript-formatter
5+
language: unsupported
6+
files: \.gd$
7+
- id: gdscript-linter
8+
name: GDScript Linter
9+
description: Lint GDScript files with gdscript-formatter
10+
entry: gdscript-formatter lint
511
language: unsupported
612
files: \.gd$

0 commit comments

Comments
 (0)