Skip to content

Commit ae45c9e

Browse files
committed
Enable validation of pfm_format_version
1 parent a3a3e41 commit ae45c9e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pre_commit_hooks/check_preference_manifests.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,13 @@ def main(argv=None):
366366
# break # No need to continue checking this file
367367

368368
# Ensure pfm_format_version has expected value
369-
# if manifest.get("pfm_format_version", 1) != 1:
370-
# print(
371-
# "{}: pfm_format_version should be 1, not {}".format(
372-
# filename, manifest.get("pfm_format_version")
373-
# )
374-
# )
375-
# retval = 1
369+
if manifest.get("pfm_format_version", 1) != 1:
370+
print(
371+
"{}: pfm_format_version should be 1, not {}".format(
372+
filename, manifest.get("pfm_format_version")
373+
)
374+
)
375+
retval = 1
376376

377377
# Ensure top level keys and their list items have expected types.
378378
if not validate_manifest_key_types(manifest, filename):

0 commit comments

Comments
 (0)