feat: add pre-commit hook

This commit is contained in:
Carlos Florêncio
2026-01-13 00:40:23 +00:00
parent f2aea364af
commit bcbe09fbb7
2 changed files with 49 additions and 1 deletions
+29 -1
View File
@@ -208,6 +208,35 @@ go fmt ./...
go vet ./...
```
## Pre-commit Hooks
We use `pre-commit` to run the backend tests, web tests, and web lint before commits.
### Install
```bash
# Install pre-commit (https://pre-commit.com/#install)
pipx install pre-commit
# Install git hooks
pre-commit install
```
### Run Manually
```bash
# Run all hooks once
pre-commit run --all-files
```
### Hooks Config
The hooks are defined in `.pre-commit-config.yaml` and run these Makefile targets:
- `make test-backend`
- `make test-web`
- `make lint-web`
## Project Status
✅ **Core Features Working**
@@ -233,4 +262,3 @@ See [apps/backend/NEXT_STEPS.md](apps/backend/NEXT_STEPS.md) for the complete ro
## Acknowledgments
Built with Go and inspired by modern DevOps practices and AI-assisted development workflows.