Sync blacken-docs' black pin via sync-with-uv pragma#58
Merged
Conversation
Replace the custom `_sync-blacken-docs` justfile recipe with the `# sync-with-uv` pragma comment (sync-with-uv 0.6.0), letting the existing `uvx sync-with-uv` step in `deps-update` keep blacken-docs' `black==` additional_dependency in sync with uv.lock. The pragma parser only matches a block-style list item and needs a parseable version, so the dependency moves from the flow-style `[black==...]` to a block list and seeds `black==0` instead of the `<placeholder_until_update_deps>` token (which sync-with-uv cannot rewrite, and which would abort the first `just deps-update`). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vNv6wUpJczEwAbapjWs7p
tsvikas
marked this pull request as ready for review
July 14, 2026 11:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the custom
_sync-blacken-docsjustfile recipe with the# sync-with-uvpragma comment (sync-with-uv 0.6.0), letting the existinguvx sync-with-uvstep indeps-updatekeep blacken-docs'black==additional_dependency in sync withuv.lock.Why the dependency form changed too
The released pragma parser only matches a block-style list item (
- black==...) and needs a parseable version, so two adjustments were required beyond swapping the pragma in:[black==...] # sync-with-uvis rejected (no dependency to sync, exit 123), so it moves to a block list.black==<placeholder_until_update_deps>cannot be rewritten (not a valid version) and would abort the firstjust deps-updateat theuvx sync-with-uvstep, so it seedsblack==0, which sync-with-uv rewrites to the locked version on that first run.Verification
Confirmed against the released
uvx sync-with-uv:black==0→sync-with-uvrewrites to the locked version, exit 0sync-pre-commit-depspreserves the block style and pragma commentsync-with-uvis idempotent (exit 0)Note: like every
rev: <placeholder>line, a freshly generated project'sblacken-docshook can't install black untildeps-updatehas run once.🤖 Generated with Claude Code
https://claude.ai/code/session_015vNv6wUpJczEwAbapjWs7p