We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebb178a + c3e4383 commit 6853f4aCopy full SHA for 6853f4a
pre_commit/commands/migrate_config.py
@@ -32,7 +32,7 @@ def _migrate_map(contents):
32
# will yield a valid configuration
33
try:
34
trial_contents = header + 'repos:\n' + rest
35
- yaml.load(trial_contents)
+ ordered_load(trial_contents)
36
contents = trial_contents
37
except yaml.YAMLError:
38
contents = header + 'repos:\n' + _indent(rest)
0 commit comments