in tools/ci_config.py [0:0]
def validate_yaml(yaml_path: Path) -> bool:
"""Load a yaml file and return the success of the parse."""
with open(yaml_path) as f:
try:
yaml.safe_load(f)
except ScannerError:
return False
return True