(self, metadata: Dict)
return all(self._match_node_at_path(k, metadata) for k in self.patterns)
Filter out all projects that don't match the specified metadata patterns.
Filter out all projects that don't match the specified metadata patterns.
Filter out all projects that don t match the specified metadata patterns .
def filter(self, metadata: Dict) -> bool:
        """
        Filter out all projects that don't match the specified metadata patterns.
        """
        # If no patterns set, always return true
        if not self.patterns:
            return True

        # Walk through keys of patterns dict and return True iff all match
        return all(self._match_node_at_path(k, metadata) for k in self.patterns)
def filter ( self , metadata : Dict ) -> bool : # If no patterns set, always return true if not self . patterns : return True # Walk through keys of patterns dict and return True iff all match return all ( self . _match_node_at_path ( k , metadata ) for k in self . patterns )