Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ fails loudly.
extend one that already covers it. Use synthetic fixtures where possible, and
the slow whisper tests only when testing whisper behavior.
6. Run `make lint`, `make typecheck` and `make test` before declaring done.
`lefthook install` runs `make lint typecheck test-fast` before every push (`lefthook.yml`).

## Common Pitfalls

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ make check-sample # Transcribe the 4-speaker AMI sample; p
make lint # ruff check and format check
make format # ruff format
make typecheck # mypy --strict
lefthook install # Run lint, typecheck and test-fast before every push
make clean-output # Delete every session's outputs under tmp/output
```

Expand Down
6 changes: 6 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Runs what CI runs, minus the package build. Install once per clone: `lefthook install`.
pre-push:
jobs:
- name: check
# Git's repo variables break tools run from a linked worktree.
run: unset $(git rev-parse --local-env-vars); make lint typecheck test-fast
Loading