Comment Comment by hv42 You can use this trick with mise (mise-en-place) for small tasks: https://mise.jdx.dev/tasks/toml-tasks.html#shell-shebang [tools] uv = 'latest' [tasks.python_uv_task] run = """ #!/usr/bin/env -S uv run --script # /// script # dependencies = ["requests<3", "rich"] # /// import requests # your code here """ parent hv42 1 year ago