Skip to content

ci: Automate versioning with hatch-vcs, add quality gates#1054

Merged
WEIFENG2333 merged 5 commits intomasterfrom
fix/cli-video-transcribe
Mar 28, 2026
Merged

ci: Automate versioning with hatch-vcs, add quality gates#1054
WEIFENG2333 merged 5 commits intomasterfrom
fix/cli-video-transcribe

Conversation

@WEIFENG2333
Copy link
Copy Markdown
Owner

Summary

  • Version number now derived from git tags via hatch-vcs — no manual editing
  • Publish workflow triggers on git tag v* push
  • Added quality gates: ruff lint → pyright → pytest before publishing
  • Auto-creates GitHub Release with changelog
  • Clean version display in GUI (strips .dev suffix)

How to release

git tag v1.5.0
git push --tags
# → automatic: lint → typecheck → test → build → PyPI → GitHub Release

🤖 Generated with Claude Code

liangweifeng and others added 5 commits March 23, 2026 01:45
When users pass a video file (mp4, mkv, etc.) to `videocaptioner transcribe`,
automatically extract audio to a temp wav file using FFmpeg before sending to
the ASR engine. Previously this would fail with "Unsupported sound format".

This matches the GUI behavior which already does video→audio conversion.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Fix clean_error() filtering Python [Errno] messages (too aggressive [prefix filter)
- Add file type validation (reject non-media files before trying ffmpeg)
- Improve no-audio-track detection (check temp file size instead of generic error)
- Suppress internal logger noise in quiet mode (set level to WARNING)
- Auto-append format extension when -o has no extension

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace hardcoded 50% callback with actual progress calculation based on
processed segment count. Progress now monotonically increases to 95% during
optimization/translation, then jumps to 100% on completion.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…tion order

- Auto-detect audio input (mp3/wav/etc) and skip synthesis step (was crashing ffmpeg)
- Move file existence check before pre-flight validation (was showing misleading error)
- Remove false URL support claim from process --help

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Version from git tags via hatch-vcs (no more manual version editing)
- Publish workflow: tag push triggers lint → typecheck → test → build → PyPI → GitHub Release
- Strip dev suffix from VERSION for clean display in GUI/CLI

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@WEIFENG2333 WEIFENG2333 merged commit 5607b30 into master Mar 28, 2026
1 check failed
@claude
Copy link
Copy Markdown

claude bot commented Mar 28, 2026

Claude encountered an error —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant