Skip to content

Commit 6abbbdf

Browse files
committed
Add poetry commands to devcontainer
1 parent 1d96d52 commit 6abbbdf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.devcontainer/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
oncreate:
2+
mkdir -p /root/.vscode-remote/data/Machine
3+
echo {\"python.defaultInterpreterPath\":\"$$(poetry run which python)\"} > /root/.vscode-remote/data/Machine/settings.json

.devcontainer/devcontainer.json

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"build": {
33
"dockerfile": "Dockerfile"
44
},
5+
"onCreateCommand": "make -C .devcontainer oncreate",
6+
"postStartCommand": "poetry install --sync",
57
"customizations": {
68
"vscode": {
79
"extensions": [

0 commit comments

Comments
 (0)