(verbose: bool)
# Extract commit range (or single commit)
    COMMIT_RANGE=$(echo "${CIRCLE_COMPARE_URL}" | cut -d/ -f7)

    # Fix single commit, unfortunately we don't always get a commit range from Circle CI
    if [[ $COMMIT_RANGE != *"..."* ]]; then
    COMMIT_RANGE="${COMMIT_RANGE}...${COMMIT_RANGE}"
    fi
# Extract commit range (or single commit)
    COMMIT_RANGE=$(echo "${CIRCLE_COMPARE_URL}" | cut -d/ -f7)
# Extract commit range ( or single commit ) COMMIT_RANGE = $ ( echo $ { CIRCLE_COMPARE_URL } | cut - d / - f7 )
def circle_ci_range(verbose: bool) -> List[str]:  # pragma: no cover
    """
    # Extract commit range (or single commit)
    COMMIT_RANGE=$(echo "${CIRCLE_COMPARE_URL}" | cut -d/ -f7)

    # Fix single commit, unfortunately we don't always get a commit range from Circle CI
    if [[ $COMMIT_RANGE != *"..."* ]]; then
    COMMIT_RANGE="${COMMIT_RANGE}...${COMMIT_RANGE}"
    fi
    """
    compare_range = os.getenv("CIRCLE_RANGE")
    commit_sha = os.getenv("CIRCLE_SHA1", "HEAD")

    if verbose:
        click.echo(f"CIRCLE_RANGE: {compare_range}\nCIRCLE_SHA1: {commit_sha}")

    if compare_range and not compare_range.startswith("..."):
        commit_list = get_list_commit_SHA(compare_range)
        if commit_list:
            return commit_list

    commit_list = get_list_commit_SHA("{}~1...".format(commit_sha))
    if commit_list:
        return commit_list

    raise click.ClickException(
        "Unable to get commit range. Please submit an issue with the following info:\n"
        "\tRepository URL: <Fill if public>\n"
        f"\tCIRCLE_RANGE: {compare_range}\n"
        f"\tCIRCLE_SHA1: {commit_sha}"
    )
def circle_ci_range ( verbose : bool ) -> List [ str ] : # pragma: no cover compare_range = os . getenv ( "CIRCLE_RANGE" ) commit_sha = os . getenv ( "CIRCLE_SHA1" , "HEAD" ) if verbose : click . echo ( f"CIRCLE_RANGE: {compare_range}\nCIRCLE_SHA1: {commit_sha}" ) if compare_range and not compare_range . startswith ( "..." ) : commit_list = get_list_commit_SHA ( compare_range ) if commit_list : return commit_list commit_list = get_list_commit_SHA ( "{}~1..." . format ( commit_sha ) ) if commit_list : return commit_list raise click . ClickException ( "Unable to get commit range. Please submit an issue with the following info:\n" "\tRepository URL: <Fill if public>\n" f"\tCIRCLE_RANGE: {compare_range}\n" f"\tCIRCLE_SHA1: {commit_sha}" )