def find_schema_yml(cls, package_name, root_dir, relative_dirs):
        """This is common to both v1 and v2 - look through the relative_dirs
        under root_dir for .yml files yield pairs of filepath and loaded yaml
        contents.
        """
        extension = "[!.#~]*.yml"

        file_matches = dbt.clients.system.find_matching(
            root_dir,
            relative_dirs,
            extension)

        for file_match in file_matches:
            file_contents = dbt.clients.system.load_file_contents(
                file_match.get('absolute_path'), strip=False)
            test_path = file_match.get('relative_path', '')

            original_file_path = os.path.join(file_match.get('searched_path'),
                                              test_path)

            try:
                test_yml = dbt.clients.yaml_helper.load_yaml_text(
                    file_contents
                )
            except dbt.exceptions.ValidationException as e:
                test_yml = None
                logger.info("Error reading {}:{} - Skipping\n{}".format(
                            package_name, test_path, e))

            if test_yml is None:
                continue

            yield original_file_path, test_yml
def find_schema_yml ( cls , package_name , root_dir , relative_dirs ) : extension = "[!.#~]*.yml" file_matches = dbt . clients . system . find_matching ( root_dir , relative_dirs , extension ) for file_match in file_matches : file_contents = dbt . clients . system . load_file_contents ( file_match . get ( 'absolute_path' ) , strip = False ) test_path = file_match . get ( 'relative_path' , '' ) original_file_path = os . path . join ( file_match . get ( 'searched_path' ) , test_path ) try : test_yml = dbt . clients . yaml_helper . load_yaml_text ( file_contents ) except dbt . exceptions . ValidationException as e : test_yml = None logger . info ( "Error reading {}:{} - Skipping\n{}" . format ( package_name , test_path , e ) ) if test_yml is None : continue yield original_file_path , test_yml
This is common to both v1 and v2 - look through the relative_dirs
        under root_dir for .yml files yield pairs of filepath and loaded yaml
        contents.