Spaces:
Paused
Paused
Download scripts/prepare_alpha4.py from ThomasHeisig/Brain-5D-Space: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/scripts/prepare_alpha4.py
- Command line
-
hf download hf://spaces/ThomasHeisig/Brain-5D-Space/scripts/prepare_alpha4.py
-
curl -L -o prepare_alpha4.py https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/scripts/prepare_alpha4.py
673 Bytes
| """Prepare an alpha.4 working tree for strict quality verification.""" | |
| from __future__ import annotations | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| def run(*args: str) -> None: | |
| """Run one repository preparation command and fail fast.""" | |
| subprocess.run(args, cwd=ROOT, check=True) | |
| def main() -> int: | |
| """Apply narrow typing patches and normalize Python formatting.""" | |
| run(sys.executable, "scripts/apply_alpha4_quality_fixes.py") | |
| run(sys.executable, "-m", "black", "src", "tests") | |
| print("alpha.4 preparation complete") | |
| return 0 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |