uv/docs
Blair Allan 4b61e65d6c
Add `UV_NO_SOURCES` as an environment variable (#15883)
## Summary

This is an enhancement that makes the cli flag `--no-sources` an
environment variable - "UV_NO_SOURCES"

Why is this a relevant change? 

When working across different environments, in our case remote vs local,
we often have our packages hosted in a artifact registry but when
developing locally we build our packages from github. This results in us
using the uv.tool.sources table quite a bit however this then also
forces us to use `--no-sources` for all our remote work.

This change enables us to set an environment variable once and to never
have to type --no-sources after every uv run command again.

## Test Plan

Expanded on the current --no-sources tests, to test when
UV_NO_SOURCES=true/false the behaviour is the same as the flag.
Additionally ensured that the cli overrides the env variable.

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2025-11-02 20:25:19 +00:00
..
.overrides Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
assets Add GitHub Actions to PyPI trusted publishing example (#15753) 2025-09-17 19:25:17 +02:00
concepts Bump version to 0.9.7 (#16524) 2025-10-30 16:47:51 -05:00
getting-started Bump version to 0.9.7 (#16524) 2025-10-30 16:47:51 -05:00
guides Bump version to 0.9.7 (#16524) 2025-10-30 16:47:51 -05:00
js Split the "Authentication" page into sections (#15575) 2025-08-28 15:45:31 -05:00
pip Add `UV_SKIP_WHEEL_FILENAME_CHECK` to allow installing invalid wheels (#16046) 2025-09-29 19:54:25 -04:00
reference Add `UV_NO_SOURCES` as an environment variable (#15883) 2025-11-02 20:25:19 +00:00
stylesheets document uv version for environment variables (#15196) 2025-10-08 12:31:12 -05:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
index.md Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00
requirements.in Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00
requirements.txt Add an `llms.txt` to uv (#13929) 2025-06-10 07:46:49 -04:00