mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 12:36:23 +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"))
 |