Fix uv export in bump-my-version pre_commit_hooks to run from workspace root #55

Merged
coding-agent-marvin8 merged 0 commits from feat/issue-54-fix-bumpversion-uv-export into main 2026-06-22 20:39:10 +00:00
coding-agent-marvin8 commented 2026-06-22 20:27:42 +00:00 (Migrated from codeberg.org)

Summary

  • Add --directory ../. to the uv export call in [tool.bumpversion].pre_commit_hooks in both packages/fenliu/pyproject.toml and packages/zhongli/pyproject.toml

uv export run from a package subdirectory only exports that package's dependencies (~1032 lines for zhongli). The workspace-level uv-export pre-commit hook runs from the repo root and produces the full workspace export (~1645 lines). bump-my-version staged the short version; the hook overwrote it and failed.

Adding --directory ../. makes the pre_commit_hooks export match the hook's output exactly, so just release completes cleanly.

Closes #54

## Summary - Add `--directory ../.` to the `uv export` call in `[tool.bumpversion].pre_commit_hooks` in both `packages/fenliu/pyproject.toml` and `packages/zhongli/pyproject.toml` `uv export` run from a package subdirectory only exports that package's dependencies (~1032 lines for zhongli). The workspace-level `uv-export` pre-commit hook runs from the repo root and produces the full workspace export (~1645 lines). `bump-my-version` staged the short version; the hook overwrote it and failed. Adding `--directory ../.` makes the `pre_commit_hooks` export match the hook's output exactly, so `just release` completes cleanly. Closes #54
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
marvin8/dujiangyan!55
No description provided.