Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def ignore_matcher(ignores=[]):
spec = pathspec.PathSpec.from_lines(pathspec.GitIgnorePattern, ignores)
def matcher(entity):
return entity not in spec.match_files((entity,))
return matcher