Tests/scripts/hook_validations/pack_unique_files.py
def _is_pack_ignore_file_structure_valid(self):
        """Check if .pack-ignore structure is parse-able & has valid regex"""
        try:
            pack_ignore_regex_list = self._parse_file_into_list(self.pack_ignore_file)
            if pack_ignore_regex_list and all(re.compile(regex) for regex in pack_ignore_regex_list):
                return True
        except re.error:
            self._add_error('Detected none valid regex in {} file'.format(self.pack_ignore_file))

        return False
Check if .pack-ignore structure is parse-able & has valid regex
Check if .pack-ignore structure is parse-able & has valid regex
Check if . pack - ignore structure is parse - able & has valid regex
def _is_pack_ignore_file_structure_valid(self):
        try:
            pack_ignore_regex_list = self._parse_file_into_list(self.pack_ignore_file)
            if pack_ignore_regex_list and all(re.compile(regex) for regex in pack_ignore_regex_list):
                return True
        except re.error:
            self._add_error('Detected none valid regex in {} file'.format(self.pack_ignore_file))
        return False
def _is_pack_ignore_file_structure_valid ( self ) : try : pack_ignore_regex_list = self . _parse_file_into_list ( self . pack_ignore_file ) if pack_ignore_regex_list and all ( re . compile ( regex ) for regex in pack_ignore_regex_list ) : return True except re . error : self . _add_error ( 'Detected none valid regex in {} file' . format ( self . pack_ignore_file ) ) return False
Check if .pack-ignore structure is parse-able & has valid regex
Check if . pack - ignore structure is parse - able & has valid regex
"""Check if .pack-ignore structure is parse-able & has valid regex"""
self