(repo_path: Path, fs_yaml_file: Path)
| 784 | |
| 785 | |
| 786 | def load_repo_config(repo_path: Path, fs_yaml_file: Path) -> RepoConfig: |
| 787 | config_path = fs_yaml_file |
| 788 | |
| 789 | with open(config_path) as f: |
| 790 | raw_config = yaml.safe_load(os.path.expandvars(f.read())) |
| 791 | try: |
| 792 | c = RepoConfig(**raw_config) |
| 793 | c.repo_path = repo_path |
| 794 | return c |
| 795 | except ValidationError as e: |
| 796 | raise FeastConfigError(e, config_path) |