# python: Add support for \`uv run\` as the shebang line \(\#45881\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6b3412232f97e06c22814bec670fb61149189d8c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6b3412232f97e06c22814bec670fb61149189d8c

Requested commit: 6b3412232f97e06c22814bec670fb61149189d8c

Commit: 6b3412232f97e06c22814bec670fb61149189d8c

Tree: 0f42b475a396f8b5be3688d9e20c16376c2486d6

Author: flou

Committer: GitHub

## Message

```
python: Add support for `uv run` as the shebang line (#45881)

`uv run` can be used to specify a shebang for a Python script.

See:
https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file

Release Notes:

- Added support for `uv run` in the shebang line to be interpreted as a
Python script
```

## Parents

- [963cb2c20098df8c88e5c2f2ba5544028e8f8190](https://git.cafe/gitcafe/zed/commit/963cb2c20098df8c88e5c2f2ba5544028e8f8190?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6b3412232f97e06c22814bec670fb61149189d8c?format=markdown)
