astral-sh/uv

Add environment variable to always use `--active` flag

Open

#11,273 opened on Feb 6, 2025

View on GitHub
 (15 comments) (24 reactions) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
configurationenhancementgood first issue

Description

Summary

The new --active flag (#11189) is a great addition and I think it goes some way to allow uv and pyenv to work better together (see #6204).

Would it be possible to add a new environment variable to make that flag the default? For example, the PR suggested something like UV_PROJECT_ENVIRONMENT=ACTIVE but could also be UV_ACTIVE=1. Or maybe this already works? If so, it's not clear from the documentation.

Example

No response

Contributor guide