Repository navigation
feat(cli): oa check reads pylock.toml (PEP 751) - #490
Merged
Merged
Conversation
pkg/lockfile reads PEP 751 lockfiles (pylock.toml, pylock.<name>.toml), as uv export and pip lock write them, against a PyPI repository: the packages that are no vcs, directory or archive package, names normalized (PEP 503). Neither tool writes the optional dependency lists, so such a file says nothing about who requires what. Printing "-" there would claim the project requires every package itself; instead lockfile.GraphRecorded tells oa check whether the lockfile records a dependency graph (every format does, a pylock.toml only when it lists dependencies). Without one the table leaves out REQUIRED BY and says why, and --format json reports "dependency_graph": false (true for every other lockfile). The same switch would let go.sum in later. pylock.toml records no dependency groups either, so --no-dev is refused for it. The fixtures are a real uv export of the project of the uv.lock fixture and a real pip lock, renamed to acme-*; fuzz target included. Co-Authored-By: Claude Opus 5.5 <[email protected]>
M0Rf30
force-pushed
the
feat/lockfile-pylock
branch
from
November 16, 2026 16:04
f3d0c37 to
77b20e9
Compare
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.
oa check reads PEP 751 lockfiles (pylock.toml, pylock..toml) as uv export and pip lock write them, against a PyPI repository; vcs, directory and archive packages are left out.
Neither tool writes the optional dependency lists, so the file says nothing about who requires what. Rather than print "-" ("the project requires it") for every package, lockfile.GraphRecorded tells oa check when a lockfile has no graph: the table then leaves out REQUIRED BY and says why, and --format json reports "dependency_graph": false (true for every other lockfile). The same switch would let go.sum in later. --no-dev is refused (no groups recorded).
Fixtures are a real uv export and a real pip lock, renamed to acme-*. Server side unchanged (same PyPI paths as #486). Touches the same lists as #489; whichever merges second needs a small rebase.
🤖 Generated with Claude Code