Skip to content

Commit

Permalink
Remove Dumpler from ruamel yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 16, 2024
1 parent 0c4b0c0 commit 709e67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nf_core/pipelines/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 709e67f

Please sign in to comment.