77 @echo " Available commands"
88 @echo " help -- (default) print this message"
99
10- ci : pre-commit $(call FORALL_PKGS,tests)
10+ ci : ruff $(call FORALL_PKGS,tests)
1111help ::
1212 @echo " ci -- Run tests for all packages, the same way as CI does"
1313
14- pre-commit :
15- uv run pre-commit run --all-files
16- help ::
17- @echo " pre-commit -- Run pre-commit on all files"
18-
1914clean : $(call FORALL_PKGS,clean)
2015 rm -rf dist .ruff_cache .pytest_cache
2116help ::
@@ -36,6 +31,27 @@ help::
3631 @echo " NOTE: run this command to ensure all containers are stopped after tests"
3732
3833
34+ ruff :
35+ @uv run ruff check --fix
36+ @uv run ruff format
37+ help ::
38+ @echo " ruff -- Run ruff checks on all files."
39+
40+ define COMMITIZEN_HOOK_CONTENTS
41+ # !/bin/sh
42+ MSG_FILE=$$1
43+ uv tool run --from commitizen cz check --allow-abort --commit-msg-file $$MSG_FILE
44+ endef
45+ export COMMITIZEN_HOOK_CONTENTS
46+ install-hooks :
47+ @echo " make ruff" > .git/hooks/pre-commit
48+ @chmod +x .git/hooks/pre-commit
49+ @echo " $$ COMMITIZEN_HOOK_CONTENTS" > .git/hooks/commit-msg
50+ @chmod +x .git/hooks/commit-msg
51+ help ::
52+ @echo " install-hooks -- Install custom pre-commit hooks locally."
53+ @echo " -- NOTE: Do this at least once after cloning the repo."
54+
3955realtime.% :
4056 @$(MAKE ) -C src/realtime $*
4157
0 commit comments