Commit 31bcb04
Chezmoi: Use uv to run Python scripts
Chezmoi does not use the shebang line when executing scripts; it
uses its own interpreter configuration instead. Without this, .py
scripts are run with bare Python, bypassing the
`#!/usr/bin/env -S uv --quiet run --script` shebang and failing
to auto-install PEP 723 inline dependencies.
Configure chezmoi to run .py scripts via `uv run --script` so that
scripts like typos_propagation.py can declare and auto-install their
own dependencies (click, pyyaml).
Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com>1 parent 4fc4a7b commit 31bcb04
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments