File size: 688 Bytes
78ac017
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
from __future__ import annotations

import argparse
import json
from pathlib import Path

from viss_core.evaluation_protocol import LOCKED_PROTOCOL, validate_locked_protocol


def main() -> None:
    parser = argparse.ArgumentParser(
        description="Validate the immutable exports and rules of the locked evaluation protocol."
    )
    parser.add_argument("--protocol", type=Path, default=LOCKED_PROTOCOL)
    args = parser.parse_args()
    print(
        json.dumps(
            validate_locked_protocol(args.protocol),
            indent=2,
            ensure_ascii=False,
            sort_keys=True,
        )
    )


if __name__ == "__main__":
    main()