Add uv.lock to .gitignore for library projects#577
Merged
Conversation
- Rename .gitignore to .gitignore.jinja to enable Jinja templating - Add conditional block: uv.lock is ignored for 'library' projects, not for 'command', 'notebook', or 'custom' - Add test to verify conditional behavior across project types Co-authored-by: hombit <1784493+hombit@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add uv.lock to .gitignore
Add Mar 16, 2026
uv.lock to .gitignore for library projects
drewoldag
approved these changes
Mar 16, 2026
Collaborator
drewoldag
left a comment
There was a problem hiding this comment.
This seems reasonable enough to me.
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.
Add
uv.lockto.gitignorefor "library" projects only. ("Command" and "notebook" packages may choose to actually have it in the repository for reproducible environments.)One of the motivations is GSoC candidate PRs. It looks like some candidates use
uvand are frustrated byuv.lockneeding to be committed.Closes #576