mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00

* aligned pre-commit with Makefile. added check json * add check for json/yaml files * add path checks for json/yaml validation
10 lines
122 B
Python
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"))
|