Skip to content

Add uv.lock to .gitignore #576

Closed

Description

@OmBiradar

When setting up my environment, I tend to use uv for its speed and simplicity. uv is also being used by all-in-one system package managers like pixi, which is backed by conda-forge. Therefore, I think adding uv.lock to .gitignore would be helpful to me and other.

Activity

  1. OmBiradar commented on Mar 5, 2026

    @OmBiradar
    Author
  2. hombit commented on Mar 5, 2026

    @hombit
    Contributor

    I think uv.lock could still go into git for "command" and maybe "notebook" projects, but it should be added to .gitignore for "library". See "purpose" question:

    custom_install:
    help: What is the purpose of this project? We will tailor the questions to suit the project, or you can do a fully customized installation.
    type: str
    default: custom
    choices:
    python library: library
    command line application: command
    collection of notebooks: notebook
    retrofitting existing project: retrofit
    custom: custom

  3. OmBiradar commented on Mar 6, 2026

    @OmBiradar
    Author

    I agree, library seems to be the logical choice to intriduce a default of having uv.lock in the gitignore

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions