feat(ci): Add type validation script and update track plan

This commit is contained in:
2026-03-04 01:21:25 -05:00
parent dac6400ddf
commit c6c2a1b40c
2 changed files with 26 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
# scripts/validate_types.ps1
$ErrorActionPreference = "Stop"
Write-Host "Running Ruff Check..." -ForegroundColor Cyan
uv run ruff check .
if ($LASTEXITCODE -ne 0) {
Write-Host "Ruff check failed!" -ForegroundColor Red
exit 1
}
Write-Host "Running Mypy Check..." -ForegroundColor Cyan
# We allow some existing errors for now but aim for zero in core files
uv run mypy api_hook_client.py models.py events.py conductor_tech_lead.py dag_engine.py orchestrator_pm.py
if ($LASTEXITCODE -ne 0) {
Write-Host "Mypy check failed on core files!" -ForegroundColor Red
exit 1
}
Write-Host "All type checks passed!" -ForegroundColor Green
exit 0