Skip to content

Allow configuration of environment discovery (i.e., only check cwd) #12748

Open
@ollie-bell

Description

@ollie-bell

Question

The docs explain that uv pip commands will search for a virtual environment which ultimately resorts to looking up in parent directories.

Can this behaviour be configured (e.g. via an environment variable or in pyproject.toml tool.uv.pip) such that uv pip commands will strictly only search in the current directory, and not try to search parent directories?

Platform

Darwin 24.3.0 arm64

Version

uv 0.6.13 (a0f5c72 2025-04-07)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions