We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fce756 commit 489c35dCopy full SHA for 489c35d
.hooks/pre-commit
@@ -0,0 +1,5 @@
1
+#!/bin/sh
2
+branch=$(git rev-parse --symbolic --abbrev-ref HEAD)
3
+if [ "main" == "$branch" ]; then
4
+ make build-docs
5
+fi
Makefile
@@ -7,11 +7,13 @@ else
7
endif
8
9
# == SETUP REPOSITORY AND DEPENDENCIES
10
+set-hooks:
11
+ cp .hooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
12
13
dev-sync:
14
uv sync --cache-dir .uv_cache --all-extras
15
-setup: dev-sync
16
+setup: set-hooks dev-sync
17
18
build-docs:
19
. $(VENV_BIN)/activate && mkdocs build
0 commit comments