setup_environment
Create an isolated Python environment for a repo and install its test dependencies, enabling subsequent test runs, static analysis, and flaky test detection.
Instructions
Create the repo's isolated Python environment and install the repo plus its test deps.
Call this once per repo before run_tests, run_static_analysis or detect_flaky_tests.
extras is a comma-separated list of pip extras (e.g. "test" or "test,dev"); "" installs none.
Returns {ok, output (trimmed), next_steps}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "setup_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| extras | No | test |