Skip to content

Commit

Permalink
Add poetry commands to devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
monim67 committed Feb 15, 2024
1 parent 1d96d52 commit 6abbbdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
oncreate:
mkdir -p /root/.vscode-remote/data/Machine
echo {\"python.defaultInterpreterPath\":\"$$(poetry run which python)\"} > /root/.vscode-remote/data/Machine/settings.json
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"build": {
"dockerfile": "Dockerfile"
},
"onCreateCommand": "make -C .devcontainer oncreate",
"postStartCommand": "poetry install --sync",
"customizations": {
"vscode": {
"extensions": [
Expand Down

0 comments on commit 6abbbdf

Please sign in to comment.