From 3dd8641f72d1ddab2c4aeb08a90f20cb29a9efee Mon Sep 17 00:00:00 2001 From: lyx-1631 Date: Fri, 6 Feb 2026 16:24:36 +0800 Subject: [PATCH] Add YAML linter utility script --- scripts/linter_utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/linter_utils.py diff --git a/scripts/linter_utils.py b/scripts/linter_utils.py new file mode 100644 index 000000000..a30882128 --- /dev/null +++ b/scripts/linter_utils.py @@ -0,0 +1,10 @@ +# Added by lyx-1631 for molecule integration +import yaml + +def lint_yaml(file_path): + try: + with open(file_path, 'r') as file: + yaml.safe_load(file) + print(f"{file_path} is valid YAML.") + except yaml.YAMLError as e: + print(f"Error in {file_path}: {e}") \ No newline at end of file