Skip to content

Commit 7b8f3c8

Browse files
committed
refactor: update devcontainer configuration for Quarto Codespaces with enhanced features and settings
1 parent e07d8e7 commit 7b8f3c8

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,49 @@
11
{
2-
"name": "uv + renv",
2+
"name": "Release - Universal - Quarto Codespaces",
33
"build": {
4-
"dockerfile": "Dockerfile"
4+
"dockerfile": "Dockerfile",
5+
"context": ".",
6+
"args": {
7+
"IMAGE": "mcr.microsoft.com/devcontainers/universal:latest"
8+
}
9+
},
10+
"remoteUser": "codespace",
11+
"features": {
12+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {
13+
"version": "release",
14+
"installTinyTex": "true"
15+
},
16+
"ghcr.io/astral-sh/devcontainer-features/uv:1": {
17+
"version": "latest"
18+
},
19+
"ghcr.io/rocker-org/devcontainer-features/r-packages:1": {
20+
"packages": "rmarkdown,languageserver,prompt,lintr,nx10/[email protected]"
21+
}
522
},
6-
"postCreateCommand": "uv sync && R -q -e \"renv::restore()\"",
23+
"postCreateCommand": "uv pip install jupyter papermill",
724
"customizations": {
825
"vscode": {
926
"extensions": [
1027
"quarto.quarto",
28+
"mcanouil.quarto-wizard",
1129
"REditorSupport.r",
1230
"ms-python.python",
13-
"charliermarsh.ruff",
31+
"ms-python.black-formatter",
32+
"ms-python.flake8",
1433
"ms-python.vscode-pylance",
34+
"ms-python.pylint",
35+
"ms-python.isort",
1536
"ms-toolsai.jupyter",
16-
"Posit.air-vscode",
17-
"dbaeumer.vscode-eslint",
18-
"esbenp.prettier-vscode"
19-
]
37+
"Posit.air-vscode"
38+
],
39+
"settings": {
40+
"r.rterm.option": ["--no-save", "--no-restore-data", "--quiet"],
41+
"r.useRenvLibPath": true,
42+
"[r]": {
43+
"editor.defaultFormatter": "Posit.air-vscode",
44+
"editor.formatOnSave": true
45+
}
46+
}
2047
}
2148
}
2249
}

0 commit comments

Comments
 (0)