afegit pre-hooks

This commit is contained in:
2025-11-23 12:25:08 +01:00
parent 61d833a048
commit 3d2ad5f292
4 changed files with 106 additions and 2 deletions

View File

@@ -107,3 +107,13 @@ tools/linter/run_cppcheck.sh -u # unused functions
- OpenGL
- C++20 compiler (clang++ on macOS, g++ on Linux/Windows)
- CMake 3.10+
## Git Hooks
Pre-commit hooks are stored in `tools/hooks/` and must be configured after cloning:
```bash
make setup_hooks
```
This configures git to use `tools/hooks/` as the hooks directory. The pre-commit hook runs `clang-format` to verify code formatting before each commit.