mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	 b8dc12b30b
			
		
	
	
		b8dc12b30b
		
			
		
	
	
	
	
		
			
			* 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"))
 |