Allegro
91e6540a23
feat: implement Syntax Guard as Gitea pre-receive hook
Add pre-receive hook to prevent merging code with Python syntax errors.
Features:
- Checks all Python files (.py) in each push using python -m py_compile
- Special protection for critical files:
- run_agent.py
- model_tools.py
- hermes-agent/tools/nexus_architect.py
- cli.py, batch_runner.py, hermes_state.py
- Clear error messages showing file and line number
- Rejects pushes containing syntax errors
Files added:
- .githooks/pre-receive (Bash implementation)
- .githooks/pre-receive.py (Python implementation)
- docs/GITEA_SYNTAX_GUARD.md (installation guide)
- .githooks/pre-commit (existing secret detection hook)
Closes #82
2026-04-05 06:12:37 +00:00
..
2026-03-12 08:20:12 -07:00
2026-03-17 03:44:44 -07:00
2026-03-10 00:51:27 -07:00
2026-04-03 01:46:45 -07:00
2026-04-05 06:12:37 +00:00
2026-03-12 16:28:57 -04:00
2026-03-12 16:28:57 -04:00