Skip to content

Keep uvproj documentation samples in sync with the CLI - #629

Merged
patrickballard merged 1 commit into
wheelgap:mainfrom
kunalkshah1:docs/verify-uvproj-samples
Nov 21, 2026
Merged

patrickballard merged 1 commit into
wheelgap:mainfrom
kunalkshah1:docs/verify-uvproj-samples

Conversation

@kunalkshah1

Copy link
Copy Markdown
Contributor

Closes #610

What this changes

Refresh the uvproj text output in the front page, output reference, and recipes. Mark each sample with its CLI arguments and run it against the offline fixture in the docs tests. The failure message prints the current block to paste.

Changing a word in the front-page sample failed its snapshot. Removing the (via …) suffix from the table renderer failed all three snapshots.

AI tools used: Codex

Ruff formatting and lint, mypy, strict MkDocs build, and the full pytest suite passed locally (5,183 passed, 3 skipped).

@patrickballard

Copy link
Copy Markdown
Collaborator

Thanks @kunalkshah1, this looks good overall: the three uvproj samples are brought up to date and each is now marked with its arguments and run against the fixture in the docs tests, with a failure message that prints the block to paste. That's what #610 asked for, and it will stop the samples drifting again.

CI is green on this commit.

#610 is a help wanted issue, so Patrick will review and merge this one himself. Nothing more needed from you for now.

(Review assisted by Claude.)

patrickballard added a commit to kunalkshah1/wheelgap that referenced this pull request Nov 21, 2026
…tinued RUN

Merges main (CHANGELOG conflict only). The docs now mark the header, the dockerfile_inputs key and the annotation text as after 0.13.0, say which line a RUN that continues over several lines gets and what file holds, and sit away from the text sample that wheelgap#629 marks. New tests: a RUN continued over four lines in a Dockerfile in its own folder with --dockerfile-context (header, --json and annotation all name the line it starts on), and no dockerfile_inputs key or installed-by text without --dockerfile-inputs.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@patrickballard
patrickballard merged commit f332720 into wheelgap:main Nov 21, 2026
13 checks passed
@patrickballard

Copy link
Copy Markdown
Collaborator

Merged, thanks @kunalkshah1! The final review ran main on the fixture with the commands the pages show, and all three sample blocks match byte for byte. The test now fails with the exact block to paste when they drift.

(Reply assisted by Claude.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: the sample output on the front page isn't what wheelgap prints now, and nothing keeps it current

2 participants