Files
DeepTutor/scripts/hooks/pre-commit
evan188199-tech 920ebc830b chore(web): stop tracking Next build output and enforce repo hygiene (#865)
* chore: keep Next build output out of Git

* chore: enforce repository hygiene in CI

* chore: enforce clean primary workspaces

* chore: block accidental main commits

* fix: make repository hygiene hook fail fast

---------

Co-authored-by: XZH <cto@xzh.ai>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-16 19:12:24 +08:00

9 lines
240 B
Bash
Executable File

#!/bin/sh
set -eu
# Keep this hook dependency-free so a fresh checkout can reject generated
# files before contributors install the full pre-commit environment.
python3 scripts/check_repo_hygiene.py
python3 scripts/check_branch_policy.py