feat(ci): Add type validation script and update track plan
This commit is contained in:
20
scripts/validate_types.ps1
Normal file
20
scripts/validate_types.ps1
Normal 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
|
||||
Reference in New Issue
Block a user