(current_check, line, row, header_name, duplicates, fail=None)
return False
Check if the given column value has been seen before.
    Output a warning and return True if so.
Check if the given column value has been seen before.
    Output a warning and return True if so.
Check if the given column value has been seen before . Output a warning and return True if so .
def check_duplicate_values(current_check, line, row, header_name, duplicates, fail=None):
    """Check if the given column value has been seen before.
    Output a warning and return True if so.
    """
    if row[header_name] and row[header_name] not in duplicates:
        duplicates.add(row[header_name])
    elif row[header_name] != '':
        message = f"{current_check}:{line} `{row[header_name]}` is a duplicate {header_name}"
        if fail:
            echo_failure(message)
            return True
        else:
            echo_warning(message)
    return False
def check_duplicate_values ( current_check , line , row , header_name , duplicates , fail = None ) : if row [ header_name ] and row [ header_name ] not in duplicates : duplicates . add ( row [ header_name ] ) elif row [ header_name ] != '' : message = f"{current_check}:{line} `{row[header_name]}` is a duplicate {header_name}" if fail : echo_failure ( message ) return True else : echo_warning ( message ) return False