7 lines
242 B
Bash
Executable File
7 lines
242 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -euo pipefail
|
||
|
||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||
git -C "$ROOT_DIR" config core.hooksPath .githooks
|
||
echo "已启用 .githooks(Ruff 格式检查 + pytest pre-push 门禁;TYPECHECK=1 可启用 Pyright)"
|