This commit is contained in:
2026-04-14 00:16:59 +02:00
parent 5763f35220
commit 500b37bd26
20 changed files with 842 additions and 268 deletions

7
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"recommendations": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.debugpy"
]
}

46
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,46 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: pyMCPBroker (smoke config)",
"type": "debugpy",
"request": "launch",
"module": "pyMCPBroker",
"cwd": "${workspaceFolder}",
"args": [
"127.0.0.1:8100",
"smoke_config.json",
"--log-level",
"debug"
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"cwd": "${workspaceFolder}",
"args": [
"tests",
"-q"
],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: pytest current file",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"cwd": "${workspaceFolder}",
"args": [
"${relativeFile}",
"-q"
],
"console": "integratedTerminal",
"justMyCode": false
}
]
}

22
.vscode/settings.json vendored
View File

@@ -1,7 +1,17 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestArgs": [
"tests",
"-q"
],
"python.testing.cwd": "${workspaceFolder}",
"python.analysis.extraPaths": [
"${workspaceFolder}"
],
"python.envFile": "${workspaceFolder}/.env",
"files.exclude": {
"**/__pycache__": true,
"**/.pytest_cache": true
}
}

37
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,37 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Tests: pytest",
"type": "shell",
"command": "python -m pytest tests -q",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Tests: current file",
"type": "shell",
"command": "python -m pytest ${relativeFile} -q",
"options": {
"cwd": "${workspaceFolder}"
},
"group": "test",
"problemMatcher": []
},
{
"label": "Run: broker (smoke config)",
"type": "shell",
"command": "python -m pyMCPBroker 127.0.0.1:8100 smoke_config.json --log-level info",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}