|
|
|
|
|
by hv42
502 days ago
|
|
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
"""
|
|