(self)
return list(filtered_packages)
Return a list of package names to be filtered base on the configuration
        file.
Return a list of package names to be filtered base on the configuration
        file.
Return a list of package names to be filtered base on the configuration file .
def _determine_filtered_package_names(self) -> List[str]:
        """
        Return a list of package names to be filtered base on the configuration
        file.
        """
        # This plugin only processes packages, if the line in the packages
        # configuration contains a PEP440 specifier it will be processed by the
        # blocklist release filter.  So we need to remove any packages that
        # are not applicable for this plugin.
        filtered_packages: Set[str] = set()
        try:
            lines = self.blocklist["packages"]
            package_lines = lines.split("\n")
        except KeyError:
            package_lines = []
        for package_line in package_lines:
            package_line = package_line.strip()
            if not package_line or package_line.startswith("#"):
                continue
            package_requirement = Requirement(package_line)
            if package_requirement.specifier:
                continue
            if package_requirement.name != package_line:
                logger.debug(
                    "Package line %r does not match requirement name %r",
                    package_line,
                    package_requirement.name,
                )
                continue
            filtered_packages.add(canonicalize_name(package_requirement.name))
        logger.debug("Project blocklist is %r", list(filtered_packages))
        return list(filtered_packages)
def _determine_filtered_package_names ( self ) -> List [ str ] : # This plugin only processes packages, if the line in the packages # configuration contains a PEP440 specifier it will be processed by the # blocklist release filter.  So we need to remove any packages that # are not applicable for this plugin. filtered_packages : Set [ str ] = set ( ) try : lines = self . blocklist [ "packages" ] package_lines = lines . split ( "\n" ) except KeyError : package_lines = [ ] for package_line in package_lines : package_line = package_line . strip ( ) if not package_line or package_line . startswith ( "#" ) : continue package_requirement = Requirement ( package_line ) if package_requirement . specifier : continue if package_requirement . name != package_line : logger . debug ( "Package line %r does not match requirement name %r" , package_line , package_requirement . name , ) continue filtered_packages . add ( canonicalize_name ( package_requirement . name ) ) logger . debug ( "Project blocklist is %r" , list ( filtered_packages ) ) return list ( filtered_packages )