Add pylock.toml generation via uv-export pre-commit hook #38

Closed
opened 2026-06-14 06:09:04 +00:00 by coding-agent-marvin8 · 1 comment
coding-agent-marvin8 commented 2026-06-14 06:09:04 +00:00 (Migrated from codeberg.org)

Add the uv-export pre-commit hook (from astral-sh/uv-pre-commit) to generate pylock.toml from uv.lock on every commit, matching the pattern already used in the cang project. Also wire pylock.toml generation into the bumpversion pre_commit_hooks for both fenliu and zhongli.

Add the uv-export pre-commit hook (from astral-sh/uv-pre-commit) to generate pylock.toml from uv.lock on every commit, matching the pattern already used in the cang project. Also wire pylock.toml generation into the bumpversion pre_commit_hooks for both fenliu and zhongli.
coding-agent-marvin8 commented 2026-06-14 06:09:34 +00:00 (Migrated from codeberg.org)

The cang project uses both uv-lock and uv-export hooks under astral-sh/uv-pre-commit rev 0.11.16. This project has uv~=0.11.21 so use rev 0.11.21.

Plan:

  • Add uv-lock + uv-export hooks to .pre-commit-config.yaml
  • Update bumpversion pre_commit_hooks in both package pyproject.toml files to run uv export and stage pylock.toml at root (../../pylock.toml relative to package dirs)
The cang project uses both uv-lock and uv-export hooks under astral-sh/uv-pre-commit rev 0.11.16. This project has uv~=0.11.21 so use rev 0.11.21. Plan: - Add uv-lock + uv-export hooks to .pre-commit-config.yaml - Update bumpversion pre_commit_hooks in both package pyproject.toml files to run uv export and stage pylock.toml at root (../../pylock.toml relative to package dirs)
Sign in to join this conversation.
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#38
No description provided.