def detect_uv()

in scripts/utils.py [0:0]


def detect_uv() -> Command:
    """
    Try to detect uv.

    Returns:
        a command if uv is detected.
    """
    try:
        return Command("uv")
    except CommandNotFound:
        fatal("`uv` isn't detected")