mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
## Summary - Activate lefthook pre-commit and pre-push hooks that have existed in `lefthook.yml` since the initial desktop app but were never wired up. - Add `just hooks` recipe: sets `core.hooksPath = .hooks` and runs `lefthook install --force` to generate hook scripts. - Wire hook installation into `scripts/dev-setup.sh` so hooks activate automatically on `just setup`. - Enable `parallel: true` for pre-commit hooks (pre-push already had it) — all 5 format/lint checks run simultaneously. - Add `just mobile-fmt` recipe (`dart format .`) and `just fmt-all` recipe (Rust root + Tauri Rust + Dart) as one-shot formatters. - `.hooks/` is gitignored since lefthook generates machine-specific scripts. - Update `AGENTS.md`: document pre-commit/pre-push hooks in Quality Gates, add `just fmt-all` and `just hooks` usage, upgrade worktree fmt gotcha from CI note to commit blocker, add `just mobile-fmt` to mobile commands; also backfill CLI-first updates (`SPROUT_AUTH_TAG`, complete exit codes, `--format compact` flag position, two new gotchas). All hook commands delegate to `just` recipes as the single source of truth.
40 lines
839 B
YAML
40 lines
839 B
YAML
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
rust-fmt:
|
|
run: just fmt-check
|
|
desktop-tauri-fmt:
|
|
run: just desktop-tauri-fmt-check
|
|
desktop-check:
|
|
run: just desktop-check
|
|
web-check:
|
|
run: just web-check
|
|
mobile-check:
|
|
run: just mobile-check
|
|
|
|
pre-push:
|
|
parallel: true
|
|
commands:
|
|
rust-fmt:
|
|
run: just fmt-check
|
|
rust-clippy:
|
|
run: just clippy
|
|
rust-tests:
|
|
run: just test-unit
|
|
desktop-check:
|
|
run: just desktop-check
|
|
desktop-tauri-fmt:
|
|
run: just desktop-tauri-fmt-check
|
|
desktop-build:
|
|
run: just desktop-build
|
|
desktop-tauri-check:
|
|
run: just desktop-tauri-check
|
|
web-check:
|
|
run: just web-check
|
|
web-build:
|
|
run: just web-build
|
|
mobile-check:
|
|
run: just mobile-check
|
|
mobile-test:
|
|
run: just mobile-test
|