Expose UV_NO_GROUP as an environment variable (#16529)

## Summary

Closes https://github.com/astral-sh/uv/issues/11619.
This commit is contained in:
Charlie Marsh 2025-10-30 23:34:14 -04:00 committed by GitHub
parent d71ae61c0b
commit 7cf1646a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 97 additions and 8 deletions

View file

@ -3172,7 +3172,7 @@ pub struct RunArgs {
/// `--all-groups`, and `--group`.
///
/// May be provided multiple times.
#[arg(long)]
#[arg(long, env = EnvVars::UV_NO_GROUP, value_delimiter = ' ')]
pub no_group: Vec<GroupName>,
/// Ignore the default dependency groups.
@ -3501,7 +3501,7 @@ pub struct SyncArgs {
/// `--all-groups`, and `--group`.
///
/// May be provided multiple times.
#[arg(long)]
#[arg(long, env = EnvVars::UV_NO_GROUP, value_delimiter = ' ')]
pub no_group: Vec<GroupName>,
/// Ignore the default dependency groups.
@ -4178,7 +4178,7 @@ pub struct TreeArgs {
/// `--all-groups`, and `--group`.
///
/// May be provided multiple times.
#[arg(long)]
#[arg(long, env = EnvVars::UV_NO_GROUP, value_delimiter = ' ')]
pub no_group: Vec<GroupName>,
/// Ignore the default dependency groups.
@ -4353,7 +4353,7 @@ pub struct ExportArgs {
/// `--all-groups`, and `--group`.
///
/// May be provided multiple times.
#[arg(long)]
#[arg(long, env = EnvVars::UV_NO_GROUP, value_delimiter = ' ')]
pub no_group: Vec<GroupName>,
/// Ignore the default dependency groups.