- # Run the same checks as init.sh from Windows PowerShell.
- $ErrorActionPreference = 'Stop'
- Push-Location $PSScriptRoot
- try {
- & uv sync --frozen
- if ($LASTEXITCODE -ne 0) { throw 'Dependency synchronization failed.' }
- & uv run --frozen python -X utf8 scripts/validate_harness.py
- if ($LASTEXITCODE -ne 0) { throw 'Harness validation failed.' }
- & uv run --frozen python -X utf8 -m compileall -q src scripts
- if ($LASTEXITCODE -ne 0) { throw 'Python compilation failed.' }
- } finally {
- Pop-Location
- }
|