codeflash/codeflash.code-workspace
Kevin Turcios ec14860d29 Move benchmarks to .codeflash/benchmarks/ and auto-discover
Move codeflash's own benchmarks to .codeflash/benchmarks/. Add
auto-discovery of .codeflash/benchmarks/ in codeflash compare and
benchmark mode -- when benchmarks-root is not explicitly configured,
the CLI checks for .codeflash/benchmarks/ before erroring.

Backwards compatible: users with existing benchmarks-root config
are unaffected. Docs continue to show tests/benchmarks as the
example path.
2026-04-10 08:39:15 -05:00

90 lines
No EOL
2.8 KiB
Text

{
"folders": [
{
"path": ".",
"name": "codeflash",
"extensions": [
"charliermarsh.ruff",
"ms-python.python",
]
}
],
"settings": {
"python.terminal.activateEnvironment": true,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"tests/",
"-vv",
"--ignore",
".codeflash/benchmarks/"
],
},
"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"
},
},
{
"name": "run codeflash in custom directory",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder:codeflash}/codeflash/main.py",
"args": [
"--all",
],
"cwd": "${input:chooseCwd}",
"console": "integratedTerminal",
"env": {
"PYTHONUNBUFFERED": "1"
}
}
],
"inputs": [
{
"id": "chooseCwd",
"type": "promptString",
"description": "Enter the working directory for codeflash",
}
]
},
}