Add uv-sync prek hook to keep lockfile updated after dependency changes - #63754
Conversation
When pyproject.toml files are modified, the local uv.lock can get out of sync with declared dependencies. This adds a prek hook that automatically runs `uv sync` whenever any pyproject.toml file changes, ensuring the lockfile and virtual environment stay consistent.
jscheffl
left a comment
There was a problem hiding this comment.
Ah, oh, cool. Was scratching all the time my head where and how the UV.LOVK is updated... HERE it is!
Backport failed to create: v3-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 59192ef v3-1-testThis should apply the commit to the v3-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
| require_serial: true | ||
| - id: uv-sync | ||
| name: Run uv sync | ||
| entry: uv sync |
There was a problem hiding this comment.
| entry: uv sync | |
| entry: uv lock |
This is more suitable for a hook that should run quickly
apache#63754) When pyproject.toml files are modified, the local uv.lock can get out of sync with declared dependencies. This adds a prek hook that automatically runs `uv sync` whenever any pyproject.toml file changes, ensuring the lockfile and virtual environment stay consistent.
apache#63754) When pyproject.toml files are modified, the local uv.lock can get out of sync with declared dependencies. This adds a prek hook that automatically runs `uv sync` whenever any pyproject.toml file changes, ensuring the lockfile and virtual environment stay consistent.
Add a prek hook that automatically runs
uv syncwhenever anypyproject.tomlfile is modified. This ensures the localuv.lockand virtual environment stay in sync with declared dependencies during development.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Claude Opus 4.6) following the guidelines