Skip to main content
Version: latest

agrag.common.project_settings.load_project_settings

load_project_settings(graph_dir:Path) -> ProjectSettings

Read config.toml from a graph folder.

Parameters:

  • graph_dir (Path) – The resolved graph folder.

Returns:

  • ProjectSettings – The file's values. Every value is unset when the file does not exist.

Raises:

  • TOMLDecodeError – The file is not valid TOML.
  • ValidationError – The file has an unknown table or key, or a value of the wrong type or outside its allowed choices.