mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Merge pull request #779 from pre-commit/yaml_load
Appease yaml.load linters
This commit is contained in:
@@ -32,7 +32,7 @@ def _migrate_map(contents):
|
||||
# will yield a valid configuration
|
||||
try:
|
||||
trial_contents = header + 'repos:\n' + rest
|
||||
yaml.load(trial_contents)
|
||||
ordered_load(trial_contents)
|
||||
contents = trial_contents
|
||||
except yaml.YAMLError:
|
||||
contents = header + 'repos:\n' + _indent(rest)
|
||||
|
||||
Reference in New Issue
Block a user