Spaces:
Sleeping
Sleeping
chore: add manual pre-commit hook for TODO.md automation
Browse files- scripts/pre-commit +8 -0
scripts/pre-commit
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# Manual pre-commit hook: Generates TODO.md using flake8-todos and stages it.
|
| 3 |
+
# To install: cp scripts/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
|
| 4 |
+
|
| 5 |
+
uv run python scripts/generate_todo_md.py
|
| 6 |
+
if [ -f TODO.md ]; then
|
| 7 |
+
git add TODO.md
|
| 8 |
+
fi
|