Пример #1
0
def get_ignores(location, include_defaults=True):
    """
    Return a ignores and unignores patterns mappings loaded from the
    file at `location`. Optionally include defaults patterns
    """
    ignores = {}
    unignores = {}
    if include_defaults:
        ignores.update(default_ignores)
    patterns = fileset.load(location)
    ign, uni = fileset.includes_excludes(patterns, location)
    ignores.update(ign)
    unignores.update(uni)
    return ignores, unignores
Пример #2
0
def get_ignores(location, include_defaults=True):
    """
    Return a ignores and unignores patterns mappings loaded from the
    file at `location`. Optionally include defaults patterns
    """
    ignores = {}
    unignores = {}
    if include_defaults:
        ignores.update(default_ignores)
    patterns = fileset.load(location)
    ign, uni = fileset.includes_excludes(patterns, location)
    ignores.update(ign)
    unignores.update(uni)
    return ignores, unignores