uv/docs
Charlie Marsh a3ea1b69f2
Add support for HF_TOKEN (#14797)
## Summary

If `HF_TOKEN` is set, we'll automatically wire it up to authenticate
requests when hitting private `huggingface.co` URLs in `uv run`.

## Test Plan

An unauthenticated request:

```
> cargo run -- run https://huggingface.co/datasets/cmarsh/test/resolve/main/main.py

  File "/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/mainYadr5M.py", line 1
    Invalid username or password.
            ^^^^^^^^
SyntaxError: invalid syntax
```

An authenticated request:

```
> HF_TOKEN=hf_... cargo run run https://huggingface.co/datasets/cmarsh/test/resolve/main/main.py

Hello from main.py!
```
2025-07-21 20:55:33 +00:00
..
.overrides Add `last updated` for document (#11164) 2025-02-03 22:28:47 -05:00
assets
concepts Add support for HF_TOKEN (#14797) 2025-07-21 20:55:33 +00:00
getting-started Add missing the in concept link (#14763) 2025-07-20 17:38:24 -04:00
guides Update setup-uv docs for Github Actions integration guide (re-order python and uv setup) (#14741) 2025-07-21 14:48:47 -05:00
js Rename "Dependency specifiers" section to exclude PEP 508 reference (#14631) 2025-07-15 12:55:57 -05:00
pip Clarify which portions of requires-python behavior are consistent with pip (#14752) 2025-07-20 09:44:25 -04:00
reference Add support for HF_TOKEN (#14797) 2025-07-21 20:55:33 +00:00
stylesheets Remove the last edited date from documentation pages (#11753) 2025-02-24 13:27:00 -06:00
.gitignore
index.md Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
requirements-insiders.in
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