MCPcopy Create free account
hub / github.com/deepseek-ai/DeepSpec / validate_args

Function validate_args

scripts/data/download_and_split.py:77–81  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

75
76
77def validate_args(args: argparse.Namespace) -> None:
78 if args.sample_size is not None and args.sample_size <= 0:
79 raise ValueError("--sample-size must be positive.")
80 if not 0 < args.test_size < 1:
81 raise ValueError("--test-size must be in the range (0, 1).")
82
83
84def test_output_path(args: argparse.Namespace) -> Path:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected