P-NP / tools /verify_normative_standard.py
adamm-hf's picture
adamm-hf HF Staff
1.8
afd6e0b verified
Raw History Blame Contribute Delete
568 Bytes
from __future__ import annotations
import argparse
import json
from pathlib import Path
from pnp_lab.normative_standard import verify_normative_standard
def main() -> int:
parser = argparse.ArgumentParser(description="Verify the normative research-validity/provenance standard")
parser.add_argument("path", type=Path)
args = parser.parse_args()
status = verify_normative_standard(args.path)
print(json.dumps(status.to_dict(), indent=2, sort_keys=True))
return 0 if status.ok else 2
if __name__ == "__main__":
raise SystemExit(main())