Repository navigation
Use uv and pin pygments in readthedocs - #14550
Conversation
Pygments 2.20.0 has a bug (pygments/pygments#3076) that breaks our docs build. Pin to 2.19.2 until the issue is resolved. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
📝 WalkthroughWalkthroughAdded a pinned Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Use uv with --frozen to respect the uv.lock file, ensuring reproducible doc builds with pinned dependency versions. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
All images — No significant size changes
Bundle sizes — No significant size changesNo changes to bundle sizes. |
| tools: | ||
| python: '3.13' | ||
| jobs: | ||
| pre_create_environment: |
There was a problem hiding this comment.
Install with uv to force usage of the lockfile in readthedocs.
uv and pin pygments in readthedocs
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.readthedocs.yml (1)
10-12: Make uv bootstrap idempotent and deterministic.The current
.readthedocs.ymlusesasdf plugin add uvwithout a guard (fails on reruns if plugin exists) and pins tolatest(non-deterministic across builds). Pin a concrete version and guard the plugin add command.♻️ Suggested update
- - asdf plugin add uv - - asdf install uv latest - - asdf global uv latest + - asdf plugin add uv || true + - asdf install uv 0.9.0 + - asdf global uv 0.9.0🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.readthedocs.yml around lines 10 - 12, The asdf steps using "asdf plugin add uv", "asdf install uv latest", and "asdf global uv latest" are non-idempotent and non-deterministic; change "asdf plugin add uv" to a guarded form that skips adding if the uv plugin already exists, and replace "latest" with a pinned concrete UV version (or a CI-provided UV_VERSION variable) for both the install and global lines so builds are deterministic and rerunnable. Update the three lines referencing "asdf plugin add uv", "asdf install uv latest", and "asdf global uv latest" accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.readthedocs.yml:
- Around line 10-12: The asdf steps using "asdf plugin add uv", "asdf install uv
latest", and "asdf global uv latest" are non-idempotent and non-deterministic;
change "asdf plugin add uv" to a guarded form that skips adding if the uv plugin
already exists, and replace "latest" with a pinned concrete UV version (or a
CI-provided UV_VERSION variable) for both the install and global lines so builds
are deterministic and rerunnable. Update the three lines referencing "asdf
plugin add uv", "asdf install uv latest", and "asdf global uv latest"
accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 2ded380e-8488-4589-a67f-ffebc849c1f7
📒 Files selected for processing (1)
.readthedocs.yml
Description
Pin
pygments==2.19.2in the docs dependency group to work around a bug in Pygments 2.20.0 (pygments/pygments#3076) that breaks our docs build.The main project dependencies already pin
pygments==2.19.2, but the docs dependency group was unpinned and could pull in the broken version.Testing
🤖 Generated with Claude Code