(self)
Initialize the plugin reading patterns from the config.
Initialize the plugin reading patterns from the config.
Initialize the plugin reading patterns from the config .
def initialize_plugin(self) -> None:
        """
        Initialize the plugin reading patterns from the config.
        """
        try:
            config = self.configuration["filter_regex"]["packages"]
        except KeyError:
            return
        else:
            if not self.patterns:
                pattern_strings = [pattern for pattern in config.split("\n") if pattern]
                self.patterns = [
                    re.compile(pattern_string) for pattern_string in pattern_strings
                ]

                logger.info(f"Initialized regex release plugin with {self.patterns}")
def initialize_plugin ( self ) -> None : try : config = self . configuration [ "filter_regex" ] [ "packages" ] except KeyError : return else : if not self . patterns : pattern_strings = [ pattern for pattern in config . split ( "\n" ) if pattern ] self . patterns = [ re . compile ( pattern_string ) for pattern_string in pattern_strings ] logger . info ( f"Initialized regex release plugin with {self.patterns}" )