Skip to content

Set interpretator for script files PEP 723 #5

@o-l-a-v

Description

@o-l-a-v

Would be nice if UV Toolkit implemented the feature found in:

As in, automatically select Python interpreter in VSCode for script files that follows PEP 723 ( https://peps.python.org/pep-0723/ ). Example file.

#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.14"
# dependencies = [
#     "cowsay"
# ]
# ///

import cowsay

if __name__ == "__main__":
    cowsay.cow("Hey there!")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions