-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
44 lines (37 loc) · 896 Bytes
/
lefthook.yml
File metadata and controls
44 lines (37 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Lefthook configuration for git hooks
# Install: https://github.com/evilmartians/lefthook
# Run `lefthook install` after cloning the repository
pre-commit:
parallel: true
commands:
# Client checks
client-format:
root: "client/"
run: dart format --set-exit-if-changed --output=none {staged_files}
glob: "*.dart"
stage_fixed: true
client-analyze:
root: "client/"
run: dart analyze --fatal-infos
glob: "*.dart"
# Server checks
server-format:
root: "server/"
run: ruff format --check .
glob: "*.py"
server-lint:
root: "server/"
run: ruff check .
glob: "*.py"
pre-push:
parallel: true
commands:
client-test:
root: "client/"
run: flutter test
server-typecheck:
root: "server/"
run: mypy src/
server-test:
root: "server/"
run: pytest -q