Commit History
-
Introduce a two-stage develop/main deploy flow (#27)
Unverified signature* Set up develop/main two-stage deploy: retarget dev-en to develop, add prod-en workflow develop -> dev-en Space (staging), main -> prod-en Space (release). See #26 for the release flow design. * Centralize print_*() logging functions in logging_utils.py (#29) Consolidates the named print_*() functions that #23 extracted in model_loading.py, inference.py, examples_ui.py, image_codec.py, and the qwenimage attention/pipeline modules into logging_utils.py, alongside the print_log_*() functions already there, so all logging lives in one file instead of being scattered per-module. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * Rename dev-en's repo variable from HF_SPACE_ID to HF_SPACE_ID_DEV_EN (#30) Matches the <ENV>_<LANG> naming already used by HF_SPACE_ID_PROD_EN and HF_SPACE_ID_PROD_JA — the bare HF_SPACE_ID for dev-en was the odd one out. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * Extract _InferTimer into a generic Timer in timing.py (#32) print_timi…6e3ec3e
-
Enforce strict typing on Python code with mypy (#20)
Unverified signature* Enforce strict typing on Python code with mypy Adds mypy --strict configuration scoped to the project's own code (app.py, inference.py, model_loading.py, logging_utils.py, dimensions.py, mode.py, image_codec.py, examples_ui.py, tests/), excluding qwenimage/ since it's vendored from HuggingFace diffusers rather than code we own. Fully annotates the in-scope modules and tests, and enforces the check going forward via a GitHub Actions workflow and a local pre-commit hook. Fixes #19 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Move mypy's scoped file list into pyproject.toml CI and pre-commit invoked mypy with the same long, repeated list of files on the command line. mypy already supports a `files` setting in [tool.mypy], so both call sites now just run `uv run mypy` with no args. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>698eb37 -
Drop hardcoded Space id from the error message
The workflow is meant to be Space-agnostic (target comes entirely from the HF_SPACE_ID variable) — the error message showing a specific real Space as an example undercut that. Show the <owner>/<space-name> format instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>acee921 -
Fail loudly instead of defaulting HF_SPACE_ID
A silent default means a repo that forgets to set HF_SPACE_ID would deploy to someone-in-the-world/FireRed-Dev without anyone intending that — better to error out with a clear message than guess the target. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>86beb65 -
Make the target HF Space configurable via a repo variable
HF_SPACE_ID is a repo variable (not secret) since the Space path isn't sensitive — it's already public in this repo's history and on the Space itself. Falls back to someone-in-the-world/FireRed-Dev when unset, so the workflow keeps working without any extra setup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>bc4d94a -
Add GitHub Actions workflow to deploy to dev-en Space on merge to main
Pushes the checked-out commit to the someone-in-the-world/FireRed-Dev HF Space's main branch whenever a PR is merged (i.e. main gets a new push), using an HF_TOKEN repo secret. No --force: a non-fast-forward push means the Space diverged from GitHub and needs manual reconciliation rather than a silent overwrite. Requires an HF_TOKEN secret (HF write token for the dev-en Space) to be added under Settings > Secrets and variables > Actions before this can run successfully. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>a1ed2cd