Skip to content

Commit a2bf45e

Browse files
committed
with this setting:
- uv sync is run automatically - we can run python files via VSCode current file menu and do not have to switch to terminal/console
1 parent f11df7c commit a2bf45e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"customizations": {
1313
"vscode": {
1414
"settings": {
15-
"python.defaultInterpreterPath": "/usr/local/bin/python",
15+
"python.defaultInterpreterPath": "./.venv/bin/python",
16+
"python.terminal.activateEnvironment": true,
1617
"remote.autoForwardPorts": false,
1718
"python.createEnvironment.trigger": "off",
1819
"python.analysis.typeCheckingMode": "off"
@@ -23,5 +24,6 @@
2324
]
2425
}
2526
},
27+
"postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && uv sync",
2628
"remoteUser": "vscode"
2729
}

0 commit comments

Comments
 (0)