"""Inventory all strict coherence failures without executing packaged code.""" import json, sys from pathlib import Path from build_validate import load from strict_coherence import check if __name__ == '__main__': result = check(load(Path(sys.argv[1]) / 'data/build/contract.json')) print(json.dumps(result, indent=2)) sys.exit(0 if result['valid'] else 2)