feat: support uv.lock as version-file#379
Open
somaz94 wants to merge 1 commit into
Open
Conversation
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.
Adds
uv.lockas a supportedversion-fileformat, alongside the existingpyproject.tomlandrequirements.txt. Auv.lockpins the exact resolvedruff version, so reading it gives a reproducible install that matches the
project's lockfile — the single source of truth — instead of the lower-bound /
range typically declared in
pyproject.toml.The parser reads the
[[package]]entry whosenameisruffand returns itsversion. If ruff is absent or the file cannot be parsed, the action warns andfalls back to
latest(same behaviour as the other formats).Validation:
npm run all— tsc typecheck clean, biome clean, dist rebuilt, jest 65/65 pass__tests__/version/file-parser.test.ts) + auv.lockfixturetest-default-version-from-uv-lock) that runs theaction against the fixture and asserts ruff 0.9.5 is installed
closes #375