From fe50ebeec0632e9d1f2be13d12fe7fe88fe08b16 Mon Sep 17 00:00:00 2001 From: Simon Billinge Date: Sun, 19 Jan 2025 16:25:48 -0500 Subject: [PATCH] fix: update dumping of yaml's to synchronize with prettier and black pre-commits --- src/regolith/fsclient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/regolith/fsclient.py b/src/regolith/fsclient.py index 37336ae82..8e7c0712b 100644 --- a/src/regolith/fsclient.py +++ b/src/regolith/fsclient.py @@ -99,6 +99,10 @@ def dump_yaml(filename, docs, inst=None): inst = YAML() if inst is None else inst inst.representer.ignore_aliases = lambda *data: True inst.indent(mapping=2, sequence=4, offset=2) + inst.preserve_quotes = True + inst.width = 115 + # inst.explicit_start = True + sorted_dict = ruamel.yaml.comments.CommentedMap() for k in sorted(docs): doc = docs[k]