Spaces:
Running
Running
Download scripts/verify.ps1 from warenterprise/trace2mcp: direct link, hf CLI and curl.
- Browser
- Download file 968 Bytes
-
https://huggingface.co/spaces/warenterprise/trace2mcp/resolve/main/scripts/verify.ps1
- Command line
-
hf download hf://spaces/warenterprise/trace2mcp/scripts/verify.ps1
-
curl -L -o verify.ps1 https://huggingface.co/spaces/warenterprise/trace2mcp/resolve/main/scripts/verify.ps1
968 Bytes
| $ErrorActionPreference = "Stop" | |
| $projectRoot = Split-Path -Parent $PSScriptRoot | |
| $venvPython = Join-Path $projectRoot ".venv\Scripts\python.exe" | |
| if (-not (Test-Path -LiteralPath $venvPython)) { | |
| python -m venv (Join-Path $projectRoot ".venv") | |
| } | |
| & $venvPython -m pip install --disable-pip-version-check -e "$projectRoot[dev,space,mcp]" | |
| & $venvPython -m pytest -q | |
| & $venvPython -m ruff check $projectRoot | |
| & $venvPython -m mypy (Join-Path $projectRoot "src") | |
| & $venvPython -m trace2mcp --help | |
| & $venvPython -m trace2mcp demo --json | Out-Null | |
| & $venvPython -m compileall -q (Join-Path $projectRoot "src") (Join-Path $projectRoot "app.py") | |
| & $venvPython (Join-Path $PSScriptRoot "smoke.py") | |
| $node = "C:\Users\wwarl\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe" | |
| if (Test-Path -LiteralPath $node) { | |
| & $node --test (Join-Path $projectRoot "tests\static_compiler.test.mjs") | |
| } | |
| Write-Host "Trace2MCP verification completed successfully." | |