Skip to content

Commit d6940e7

Browse files
authored
Merge pull request #2369 from NNPDF/rs_ruamelfix
don't allow ruamel to introdue linebreaks
2 parents fef95e6 + 5d39da3 commit d6940e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: 'v5.0.0'
5+
rev: 'v6.0.0'
66
hooks:
77
- id: check-merge-conflict
88
- id: check-toml

validphys2/src/validphys/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
yaml_safe = YAML(typ='safe')
1010
yaml_rt = YAML(typ='rt')
11+
yaml_rt.width = 2**31 # to prevent ruamel.yaml introducing linebreaks
1112

1213

1314
@contextlib.contextmanager

0 commit comments

Comments
 (0)