You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/scripts/linter_utils.py

10 lines
289 B

# 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}")