Skip to content

Commit 2bca13f

Browse files
committed
Comment on YAML and JSON recipe lists
1 parent c7b125e commit 2bca13f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pre_commit_hooks/check_autopkg_recipe_list.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ def main(argv=None):
5151
print("{}: plist parsing error: {}".format(filename, err))
5252
retval = 1
5353
elif filename.endswith((".yaml", ".yml")):
54+
# AutoPkg does not support YAML recipe lists, but AutoPkg users
55+
# may have developed custom tooling for this.
5456
try:
5557
with open(filename, "r") as openfile:
5658
recipe_list = yaml.load(openfile)
5759
except Exception as err:
5860
print("{}: yaml parsing error: {}".format(filename, err))
5961
retval = 1
6062
elif filename.endswith(".json"):
63+
# AutoPkg does not support JSON recipe lists, but AutoPkg users
64+
# may have developed custom tooling for this.
6165
try:
6266
with open(filename, "r") as openfile:
6367
recipe_list = json.load(openfile)

0 commit comments

Comments
 (0)