We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7b125e commit 2bca13fCopy full SHA for 2bca13f
1 file changed
pre_commit_hooks/check_autopkg_recipe_list.py
@@ -51,13 +51,17 @@ def main(argv=None):
51
print("{}: plist parsing error: {}".format(filename, err))
52
retval = 1
53
elif filename.endswith((".yaml", ".yml")):
54
+ # AutoPkg does not support YAML recipe lists, but AutoPkg users
55
+ # may have developed custom tooling for this.
56
try:
57
with open(filename, "r") as openfile:
58
recipe_list = yaml.load(openfile)
59
except Exception as err:
60
print("{}: yaml parsing error: {}".format(filename, err))
61
62
elif filename.endswith(".json"):
63
+ # AutoPkg does not support JSON recipe lists, but AutoPkg users
64
65
66
67
recipe_list = json.load(openfile)
0 commit comments