From 709e67ff4e395419b3de91dcf1b9b242f7689241 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Mon, 16 Dec 2024 11:46:35 +0100 Subject: [PATCH] Remove Dumpler from ruamel yaml --- nf_core/pipelines/bump_version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nf_core/pipelines/bump_version.py b/nf_core/pipelines/bump_version.py index d8346e0861..664d7a22a3 100644 --- a/nf_core/pipelines/bump_version.py +++ b/nf_core/pipelines/bump_version.py @@ -12,7 +12,7 @@ import nf_core.utils from nf_core.pipelines.rocrate import ROCrate -from nf_core.utils import Pipeline, custom_yaml_dumper +from nf_core.utils import Pipeline log = logging.getLogger(__name__) stderr = rich.console.Console(stderr=True, force_terminal=nf_core.utils.rich_force_colors()) @@ -257,7 +257,7 @@ def update_yaml_file(fn: Path, patterns: List[Tuple[str, str]], yaml_key: List[s if new_value != current_value: target[last_key] = new_value with open(fn, "w") as file: - yaml.dump(yaml_content, file, Dumper=custom_yaml_dumper()) + yaml.dump(yaml_content, file) log.info(f"Updated version in YAML file '{fn}'") log_change(str(current_value), str(new_value)) except KeyError as e: