astral-sh/uv

Allow `--isolated` with script execution

Open

#15,919 opened on Sep 17, 2025

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (3,111 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (Avg merge 6d 16h) (222 merged PRs in 30d)

Description

Right now, we ignore the flag and display a warning

❯ uv run --isolated --script example.py
warning: `--isolated` is a no-op for Python scripts with inline metadata, which always run in isolation

but now that we changed scripts to use a stable path, we should allow --isolated to opt-out of that, e.g., for people in situations like https://github.com/astral-sh/uv/issues/15918

Contributor guide