This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
Files
autonomic/autonomic/yaml.py
2020-04-11 22:52:27 +02:00

14 lines
385 B
Python

"""YAML initialisation module.
Since we would like a consistent approach to how we load, manipulate and dump
YAML, we centralise the approach into a single module to avoid duplicating all
the customisation code across the code base.
"""
from ruamel.yaml import YAML
yaml = YAML()
# ensure that "---" is always at the top of the YAML file
yaml.explicit_start = True # type: ignore