mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 20:34:02 +01:00
The last Python file over the cap:
_transcribe_media.py 143 _try_import, both duration probes,
get_media_duration, ffmpeg transcode, cleanup
_transcribe_cluster.py 105 _resample_linear, _kmeans_cosine and its
iteration loop
_transcribe_diarize.py 164 the pipeline: audio loading, the classifier,
embedding extraction, diarize_segments
The graph is a tree: _transcribe_media imports nothing local, _cluster takes
only _try_import from it, _diarize imports from both. All 13 top-level
definitions verified AST-identical to HEAD, and an AST scan confirms the
three module constants travelled to the modules that use them.
transcribe_fw.py now imports get_media_duration from _transcribe_media
rather than through _transcribe_diarize. Ruff removed that re-export as
unused and broke the import; running the program is what caught it, and
naming the owning module is the correct fix under the no-barrels rule.
Verified: transcribe_fw.py /nonexistent.wav still exits 2 and --help exits
0; 63 tests pass at 100% line and branch on all three modules; 338 pass in
the directory. Over-cap files 33 -> 32, and no Python file is over the cap
any more - the remaining 32 are 29 shell, 2 kotlin, 1 dart.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| lib | ||
| tools | ||
| .gitignore | ||
| clean_audio.sh | ||
| compress_images.sh | ||
| convert.sh | ||
| copyFolder.sh | ||
| download.sh | ||
| fix_thorium_unity.sh | ||
| fix_unity.sh | ||
| generate_subfolders.sh | ||
| get_rnnoise_model.sh | ||
| install_ffmpeg_with_arnndn.sh | ||
| install_unity_mcp.sh | ||
| libre_translate.sh | ||
| mcp_readme.md | ||
| process_table.sh | ||
| README_clean_audio.md | ||
| test_fw.srt | ||
| transcribe.sh | ||
| upgrade.sh | ||