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.
2020-04-11 19:10:29 +00:00
|
|
|
"""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.
|
|
|
|
"""
|
2020-04-10 22:17:36 +00:00
|
|
|
|
|
|
|
from ruamel.yaml import YAML
|
|
|
|
|
|
|
|
yaml = YAML()
|
2020-04-11 19:10:29 +00:00
|
|
|
|
|
|
|
# ensure that "---" is always at the top of the YAML file
|
2020-04-11 20:52:27 +00:00
|
|
|
yaml.explicit_start = True # type: ignore
|