Skip to content

Commit

Permalink
Fixed YAML merge formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Jan 4, 2023
1 parent 51ab582 commit 7259919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cookie_composer/merge_files/yaml_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def merge_yaml_files(new_file: Path, existing_file: Path, merge_strategy: str):
from ruamel.yaml import YAML, SafeRepresenter, YAMLError

yaml = YAML(typ="safe")
yaml.default_flow_style = False
yaml.indent(mapping=2, sequence=4, offset=2)
yaml.Representer.add_representer(immutabledict, SafeRepresenter.represent_dict)

if merge_strategy == DO_NOT_MERGE:
Expand Down

0 comments on commit 7259919

Please sign in to comment.