astral-sh/uv

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

Open

#11,273 创建于 2025年2月6日

在 GitHub 查看
 (15 评论) (24 反应) (0 负责人)Rust (3,111 fork)batch import
configurationenhancementgood first issue

仓库指标

Star
 (84,934 star)
PR 合并指标
 (平均合并 7天 16小时) (30 天内合并 259 个 PR)

描述

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

贡献者指南