From 4650bf2637ae3ffd8e47a239c1df4572a41ba0c8 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 12 Sep 2025 12:23:09 -0400 Subject: [PATCH] Document NO_PROXY support --- crates/uv-static/src/env_vars.rs | 3 +++ docs/reference/environment.md | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/crates/uv-static/src/env_vars.rs b/crates/uv-static/src/env_vars.rs index 06bfc3cc2b103..5566c6fc40506 100644 --- a/crates/uv-static/src/env_vars.rs +++ b/crates/uv-static/src/env_vars.rs @@ -474,6 +474,9 @@ impl EnvVars { /// General proxy for all network requests. pub const ALL_PROXY: &'static str = "ALL_PROXY"; + /// Comma-separated list of hostnames (e.g., `example.com`) and/or patterns (e.g., `192.168.1.0/24`) that should bypass the proxy. + pub const NO_PROXY: &'static str = "NO_PROXY"; + /// Timeout (in seconds) for HTTP requests. (default: 30 s) pub const UV_HTTP_TIMEOUT: &'static str = "UV_HTTP_TIMEOUT"; diff --git a/docs/reference/environment.md b/docs/reference/environment.md index bf902a4fd9a51..7537af535ebd4 100644 --- a/docs/reference/environment.md +++ b/docs/reference/environment.md @@ -671,6 +671,10 @@ Disables colored output (takes precedence over `FORCE_COLOR`). See [no-color.org](https://no-color.org). +### `NO_PROXY` + +Comma-separated list of hostnames (e.g., `example.com`) and/or patterns (e.g., `192.168.1.0/24`) that should bypass the proxy. + ### `NU_VERSION` Used to detect `NuShell` usage.