Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 29, 2025
1 parent a17eadd commit 96fb568
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/mise-cookbook/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ You can use [uv sync python --uv](/cli/sync/python.html#uv) to sync the python v

### uv scripts

You can take advantage of `uv run` in [`shebang`](/tasks/toml-tasks.html#shell-shebang) in toml or file tasks.
You can take advantage of `uv run` in [`shebang`](/tasks/toml-tasks.html#shell-shebang) in toml or file tasks.
Note that using `--script` is required if the filename does not end in `.py`.

Here is an example toml task:

```toml [mise.toml]
[tools]
uv = 'latest'
Expand Down Expand Up @@ -143,7 +144,7 @@ pprint([(k, v["title"]) for k, v in data.items()][:10])
You can then run it with `mise run print_peps`:

```shell
❯ mise run print_peps
❯ mise run print_peps
[print_peps] $ ~/uv-project/mise-tasks/print_peps.py
Installed 9 packages in 8ms
[
Expand Down

0 comments on commit 96fb568

Please sign in to comment.