init.ps1 521 B

12345678910111213
  1. # Run the same checks as init.sh from Windows PowerShell.
  2. $ErrorActionPreference = 'Stop'
  3. Push-Location $PSScriptRoot
  4. try {
  5. & uv sync --frozen
  6. if ($LASTEXITCODE -ne 0) { throw 'Dependency synchronization failed.' }
  7. & uv run --frozen python -X utf8 scripts/validate_harness.py
  8. if ($LASTEXITCODE -ne 0) { throw 'Harness validation failed.' }
  9. & uv run --frozen python -X utf8 -m compileall -q src scripts
  10. if ($LASTEXITCODE -ne 0) { throw 'Python compilation failed.' }
  11. } finally {
  12. Pop-Location
  13. }