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 (3,111 forks)batch import
configurationenhancementgood first issue

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (Avg merge 7d 16h) (259 merged PRs in 30d)

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