Return all feature-store config paths found under *repo_path*. Searches: 1. ``repo_path/feature_store.yaml`` 2. Every file directly inside ``repo_path/feast-config/`` — each file is treated as a separate project config.
(repo_path: pathlib.Path)
| 41 | |
| 42 | |
| 43 | def _find_feature_store_yamls(repo_path: pathlib.Path) -> list[pathlib.Path]: |
| 44 | """Return all feature-store config paths found under *repo_path*. |
| 45 | |
| 46 | Searches: |
| 47 | 1. ``repo_path/feature_store.yaml`` |
| 48 | 2. Every file directly inside ``repo_path/feast-config/`` |
| 49 | — each file is treated as a separate project config. |
| 50 | """ |
| 51 | found: list[pathlib.Path] = [] |
| 52 | |
| 53 | direct = repo_path / "feature_store.yaml" |
| 54 | if direct.exists(): |
| 55 | found.append(direct) |
| 56 | |
| 57 | feast_config_dir = repo_path / "feast-config" |
| 58 | if feast_config_dir.is_dir(): |
| 59 | for entry in sorted(feast_config_dir.iterdir()): |
| 60 | if entry.is_file(): |
| 61 | found.append(entry) |
| 62 | |
| 63 | return found |
| 64 | |
| 65 | |
| 66 | def _parse_yaml(yaml_path: pathlib.Path) -> dict[str, Any]: |
no outgoing calls