def detect_ruff()

in scripts/utils.py [0:0]


def detect_ruff() -> Command:
    """
    Try to detect ruff.
    Returns:
        a command if ruff is detected.
    """
    try:
        return Command("ruff")
    except CommandNotFound:
        fatal("`ruff` isn't installed")