import re


def is_ignored(filename, ignores):
    """
    Checks if the filename matches any of the ignored keywords

    :param filename:
        The filename to check
    :type filename:
        `str`
    :param ignores:
        List of regex paths to ignore. Can be none
    :type ignores:
        `list` of `str` or None
    :rtype:
        `bool`
    """
    return ignores and len([x for x in ignores if re.search(x, filename)]) > 0