@staticmethod
def get_column_alignments(row):
    """
        Sets alignments on table columns.

        :param list[str] row: The row with hyphens for creating column headers.

        :rtype: list[str]
        """
    alignments = []
    for hyphens in row:
        hyphens = hyphens.strip()
        if hyphens.startswith(':') and hyphens.endswith(':'):
            alignments.append('center')
        elif hyphens.startswith(':'):
            alignments.append('left')
        elif hyphens.endswith(':'):
            alignments.append('right')
        else:
            alignments.append('')
    return alignments
