(paths_ignore: Iterable[str])
return res
filter_set creates a set of paths of the ignored
    entries from 3 sources:
    .gitguardian.yaml
    files in .git
    files ignore in .gitignore
filter_set creates a set of paths of the ignored
    entries from 3 sources:
    .gitguardian.yaml
    files in .git
    files ignore in .gitignore
filter_set creates a set of paths of the ignored entries from 3 sources : . gitguardian . yaml files in . git files ignore in . gitignore
def init_exclusion_regexes(paths_ignore: Iterable[str]) -> Set[re.Pattern]:
    """
    filter_set creates a set of paths of the ignored
    entries from 3 sources:
    .gitguardian.yaml
    files in .git
    files ignore in .gitignore
    """
    res = set()
    for path in paths_ignore:
        if not is_pattern_valid(path):
            raise click.ClickException(f"{path} is not a valid exclude pattern.")
        res.add(re.compile(translate_user_pattern(path)))
    return res
def init_exclusion_regexes ( paths_ignore : Iterable [ str ] ) -> Set [ re . Pattern ] : res = set ( ) for path in paths_ignore : if not is_pattern_valid ( path ) : raise click . ClickException ( f"{path} is not a valid exclude pattern." ) res . add ( re . compile ( translate_user_pattern ( path ) ) ) return res