From 693baf292594fdfc4fd8a10e97914850a7d299be Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Fri, 5 Apr 2024 17:28:40 -0400 Subject: [PATCH] Update validate_format.py --- validate_format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validate_format.py b/validate_format.py index 8386d66..c6738d2 100644 --- a/validate_format.py +++ b/validate_format.py @@ -55,14 +55,14 @@ def validate_file(file_path): with open(file_path, "r") as file: parts = file.read().split("---") if len(parts) < 3: - print("Invalid file structure. Could not find YAML front matter.") + # print("Invalid file structure. Could not find YAML front matter.") errors.append("Invalid file structure. Could not find YAML front matter.") yaml_content, text_content = parts[1], parts[2] try: content = yaml.load(yaml_content, Loader=yaml.FullLoader) except yaml.YAMLError as exc: - print(f"Error in YAML parsing: {exc}") + # print(f"Error in YAML parsing: {exc}") errors.append(f"Error in YAML parsing: {exc}") required_fields = [ @@ -75,7 +75,7 @@ def validate_file(file_path): ] for field in required_fields: if field not in content: - print(f"Missing required field: {field}") + # print(f"Missing required field: {field}") errors.append(f"Missing required field: {field}") if "team_leads" in content: