build: use lefthook for hooks

This commit is contained in:
2026-04-13 00:43:26 +03:00
parent 1e85d0c2a6
commit 5dcd1f25b1
2 changed files with 18 additions and 60 deletions

9
lefthook.yml Normal file
View File

@@ -0,0 +1,9 @@
pre-commit:
commands:
format:
glob: "*.dart"
run: dart format {staged_files}
stage_fixed: true
analyze:
glob: "*.dart"
run: dart analyze {staged_files}