def read_yaml()

in solutions_builder/cli/cli_utils.py [0:0]


def read_yaml(filepath):
  """Read YAML file and convert to a dict."""
  try:
    with open(filepath) as f:
      data = yaml.safe_load(f)
    return data
  except FileNotFoundError as e:
    return {}