Add pre-commit hooks to transcriber #129
Labels
No labels
blocked:children
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
deferred
enhancement
feature-request
in-progress
needs-decompose
needs-triage
quickfix
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/transcriber#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repository
transcriberdoes not have pre-commit hooks configured. Evaluate the repo's language/tooling and add appropriate hooks (.pre-commit-config.yamlfor Python,lefthook.ymlfor Node, or.githooks/pre-commitfor simpler repos).Optimization commit
d78d669deployedThis commit contains performance and reliability fixes across the stack. Build compiles and all unit tests pass.
Key changes:
Follow-up fix deployed:
9c75ca7Fixes integration issues from the optimization commit:
NoteTag,NoteCrossref,SpeakerEmbeddingentities toAppDatabase(version 7)MIGRATION_6_7for new tables:note_tags,note_crossrefs,speaker_embeddings@Providesmethods inDatabaseModulefor new DAOssetPinned/setTitlemethods toSessionRepository(used by UI)TranscriptionServiceparameter mismatch inSpeechBackend.selectcallFloatArrayConvertertoAppDatabase@TypeConvertersfor embedding BLOB storageFull debug build passes. All unit tests pass.
Offline infrastructure deployed:
79954aaFoundation for full sustained offline functionality:
ConnectivityMonitor— real-time network state trackingOfflineCapabilityTracker— per-feature offline availabilityEnhancementJobqueue — cloud features queue for background processing when onlineLLMModelCatalog— 3 quantized on-device LLMs (Qwen 0.5B, TinyLlama 1.1B, Phi-3 Mini)ModelsScreenextended with LLM model download/activate/deleteBackendConfigScreen— Offline Mode toggleBuild passes, all unit tests pass.
Fixed in
4ba7f53Added
.pre-commit-config.yamlwith the following hooks:trailing-whitespace— strips trailing whitespace (excludes.cxx/build artifacts)end-of-file-fixer— ensures files end with a newlinecheck-merge-conflict— blocks commits with unresolved merge markerscheck-added-large-files— blocks files >1MBcheck-json/check-yaml/check-toml— validates syntaxmixed-line-ending— normalizes line endingscheck-executables-have-shebangs— ensures executable scripts have shebangsGradle compile check is intentionally not in pre-commit (takes 30s+). The CI workflow runs the full build on every push.
Installed with
pre-commit install. First run fixed trailing whitespace / EOF in 41 files.