(self)
return list(filtered_requirements)
Parse the configuration file for [blocklist]packages

        Returns
        -------
        list of packaging.requirements.Requirement
            For all PEP440 package specifiers
Parse the configuration file for [blocklist]packages
Parse the configuration file for [ blocklist ] packages
def _determine_filtered_package_requirements(self) -> List[Requirement]:
        """
        Parse the configuration file for [blocklist]packages

        Returns
        -------
        list of packaging.requirements.Requirement
            For all PEP440 package specifiers
        """
        filtered_requirements: Set[Requirement] = 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
            requirement = Requirement(package_line)
            requirement.name = canonicalize_name(requirement.name)
            requirement.specifier.prereleases = True
            filtered_requirements.add(requirement)
        return list(filtered_requirements)
def _determine_filtered_package_requirements ( self ) -> List [ Requirement ] : filtered_requirements : Set [ Requirement ] = 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 requirement = Requirement ( package_line ) requirement . name = canonicalize_name ( requirement . name ) requirement . specifier . prereleases = True filtered_requirements . add ( requirement ) return list ( filtered_requirements )