We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd49d0a commit 1119d5aCopy full SHA for 1119d5a
1 file changed
pre_commit_hooks/util.py
@@ -6,7 +6,9 @@
6
import sys
7
from datetime import datetime
8
9
-from ruamel import yaml
+import ruamel.yaml
10
+
11
+yaml = ruamel.yaml.YAML(typ="safe")
12
13
# Plist data types and their Python equivalents
14
PLIST_TYPES = {
@@ -31,7 +33,7 @@ def load_autopkg_recipe(path):
31
33
try:
32
34
# try to read it as yaml
35
with open(path, "rb") as f:
- recipe = yaml.safe_load(f)
36
+ recipe = yaml.load(f)
37
except Exception as err:
38
print("{}: yaml parsing error: {}".format(path, err))
39
elif path.endswith(".json"):
0 commit comments