Spaces:
Paused
Paused
Download scripts/validate_release.py from ritishshrirao/OSINT1: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/ritishshrirao/OSINT1/resolve/main/scripts/validate_release.py
- Command line
-
hf download hf://spaces/ritishshrirao/OSINT1/scripts/validate_release.py
-
curl -L -o validate_release.py https://huggingface.co/spaces/ritishshrirao/OSINT1/resolve/main/scripts/validate_release.py
458 Bytes
| from __future__ import annotations | |
| import json | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |
| from osint_env.validation import run_validation_suite | |
| def main() -> int: | |
| result = run_validation_suite() | |
| print(json.dumps(result, indent=2, sort_keys=True)) | |
| return 0 if result["passed"] else 1 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |