2025-02-24 22:19:56 +00:00
|
|
|
{
|
|
|
|
|
"folders": [
|
|
|
|
|
{
|
|
|
|
|
"path": ".",
|
|
|
|
|
"name": "codeflash",
|
|
|
|
|
"extensions": [
|
|
|
|
|
"charliermarsh.ruff",
|
|
|
|
|
"ms-python.python",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"settings": {
|
2025-02-24 23:46:55 +00:00
|
|
|
"python.terminal.activateEnvironment": true,
|
|
|
|
|
"python.testing.pytestEnabled": true,
|
2025-06-26 20:17:27 +00:00
|
|
|
"python.testing.pytestArgs": [
|
|
|
|
|
"tests/",
|
|
|
|
|
"-vv",
|
|
|
|
|
"--ignore",
|
|
|
|
|
"tests/benchmarks/"
|
|
|
|
|
],
|
2025-02-24 22:19:56 +00:00
|
|
|
},
|
|
|
|
|
"launch": {
|
|
|
|
|
"configurations": [
|
|
|
|
|
{
|
|
|
|
|
"name": "bubble_sort",
|
|
|
|
|
"type": "debugpy",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${workspaceFolder:codeflash}/codeflash/main.py",
|
|
|
|
|
"args": [
|
|
|
|
|
"--file",
|
|
|
|
|
"code_to_optimize/bubble_sort.py",
|
|
|
|
|
"--module-root",
|
|
|
|
|
"${workspaceFolder:codeflash}",
|
|
|
|
|
"--function",
|
|
|
|
|
"sorter",
|
|
|
|
|
"--test-framework",
|
|
|
|
|
"pytest",
|
|
|
|
|
"--tests-root",
|
|
|
|
|
"code_to_optimize/tests/pytest"
|
|
|
|
|
],
|
|
|
|
|
"cwd": "${workspaceFolder:codeflash}",
|
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
|
"env": {
|
|
|
|
|
"PYTHONUNBUFFERED": "1"
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "bubble_sort -all",
|
|
|
|
|
"type": "debugpy",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${workspaceFolder:codeflash}/codeflash/main.py",
|
|
|
|
|
"args": [
|
|
|
|
|
"--all",
|
|
|
|
|
"--test-framework",
|
|
|
|
|
"pytest",
|
|
|
|
|
"--tests-root",
|
|
|
|
|
"code_to_optimize/tests/pytest",
|
|
|
|
|
"--module-root",
|
|
|
|
|
"code_to_optimize"
|
|
|
|
|
],
|
|
|
|
|
"cwd": "${workspaceFolder:codeflash}",
|
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
|
"env": {
|
|
|
|
|
"PYTHONUNBUFFERED": "1"
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-26 20:17:27 +00:00
|
|
|
"name": "run codeflash in custom directory",
|
2025-02-24 22:19:56 +00:00
|
|
|
"type": "debugpy",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${workspaceFolder:codeflash}/codeflash/main.py",
|
|
|
|
|
"args": [
|
|
|
|
|
"--all",
|
|
|
|
|
],
|
2025-06-26 20:17:27 +00:00
|
|
|
"cwd": "${input:chooseCwd}",
|
2025-02-24 22:19:56 +00:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
|
"env": {
|
|
|
|
|
"PYTHONUNBUFFERED": "1"
|
2025-06-26 20:17:27 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"inputs": [
|
|
|
|
|
{
|
|
|
|
|
"id": "chooseCwd",
|
|
|
|
|
"type": "promptString",
|
|
|
|
|
"description": "Enter the working directory for codeflash",
|
2025-02-24 22:19:56 +00:00
|
|
|
}
|
|
|
|
|
]
|
2025-06-26 20:17:27 +00:00
|
|
|
},
|
2025-02-24 22:19:56 +00:00
|
|
|
}
|