MCPcopy
hub / github.com/feast-dev/feast / load_repo_config

Function load_repo_config

sdk/python/feast/repo_config.py:786–796  ·  view source on GitHub ↗
(repo_path: Path, fs_yaml_file: Path)

Source from the content-addressed store, hash-verified

784
785
786def 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)

Callers 9

apply_repoMethod · 0.90
__init__Method · 0.90
configurationFunction · 0.90
plan_commandFunction · 0.90
apply_total_commandFunction · 0.90
teardown_commandFunction · 0.90
registry_dump_commandFunction · 0.90
_test_configFunction · 0.90
mainFunction · 0.90

Calls 3

FeastConfigErrorClass · 0.85
readMethod · 0.80
RepoConfigClass · 0.70

Tested by 1

_test_configFunction · 0.72