Skip to content

Commit

Permalink
fix UX
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Dec 17, 2024
1 parent afaa2d4 commit 37d83a8
Showing 1 changed file with 39 additions and 14 deletions.
53 changes: 39 additions & 14 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"requireLocalPort": false
}
},
"postCreateCommand": "python -m venv .venv",
"postStartCommand": ". .venv/bin/activate && make init",
"customizations": {
"vscode": {
"extensions": [
Expand All @@ -37,65 +39,88 @@
"args": [
"-c",
"until gh codespace ports visibility 5000:public --codespace ${CODESPACE_NAME} 2>/dev/null; do sleep 1; done"
]
],
"presentation": {
"reveal": "silent",
"focus": false
}
},
{
"label": "Kill MotoServer",
"type": "shell",
"command": "pkill -f '${workspaceFolder}/moto/server.py'",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"focus": false
}
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Debug Moto Server",
"name": "Run MotoServer",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/moto/server.py",
"args": [
"--reload"
],
"console": "integratedTerminal",
"console": "internalConsole",
"presentation": {
"hidden": true
"order": 11
}
},
{
"name": "Debug Moto Server Tests",
"name": "Run MotoServer Tests",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"console": "integratedTerminal",
"preLaunchTask": "Open Port 5000",
"postDebugTask": "Kill MotoServer",
"env": {
"TEST_SERVER_MODE": "true",
"TEST_SERVER_MODE_ENDPOINT": "https://${env:CODESPACE_NAME}-5000.${env:GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"
},
"presentation": {
"hidden": true
"order": 12
},
"args": [
"-sv",
"--cov=moto",
"--cov-report=xml",
"${workspaceFolder}/tests/"
"${workspaceFolder}/tests/",
"-k",
"${input:pytestFilter}"
]
}
],
"inputs": [
{
"id": "pytestFilter",
"type": "promptString",
"description": "pytest -k filter (leave empty to run all tests)",
"default": ""
}
],
"compounds": [
{
"name": "Run Server Tests",
"name": "MotoServer Tests",
"configurations": [
"Debug Moto Server",
"Debug Moto Server Tests"
"Run MotoServer Tests",
"Run MotoServer"
],
"presentation": {
"group": "Moto Server"
"order": 1
},
"stopAll": true
}
]
}
}
}
},
"postCreateCommand": "python -m venv .venv",
"postStartCommand": ". .venv/bin/activate && make init"
}
}

0 comments on commit 37d83a8

Please sign in to comment.