OpenMetadata/scripts/validate_yaml.py
Imri Paran b8dc12b30b
aligned pre-commit with Makefile. added check json (#15295)
* aligned pre-commit with Makefile. added check json

* add check for json/yaml files

* add path checks for json/yaml validation
2024-04-18 15:32:38 +02:00

10 lines
122 B
Python

import os
import sys
import yaml
path = sys.argv[1]
if os.path.islink(path):
exit()
yaml.safe_load(open(path, "r"))