|
2 | 2 | "name": "{{ project_name }}", |
3 | 3 | "image": "mcr.microsoft.com/devcontainers/ubuntu:jammy", |
4 | 4 | "features": { |
5 | | - "ghcr.io/guiyomh/features/just:0.1.0": { "version": "1.42.4" }{% if python == 'y' %}, |
6 | | - "ghcr.io/devcontainers/features/python:1": { "version": "3.13" }{% endif %}{% if r_data_science == 'y' %}, |
| 5 | + "ghcr.io/guiyomh/features/just:0.1.0": { "version": "1.42.4" }{% if python %}, |
| 6 | + "ghcr.io/devcontainers/features/python:1": { "version": "3.13" }{% endif %}{% if r_data_science %}, |
7 | 7 | "ghcr.io/rocker-org/devcontainer-features/r-rig:1": { |
8 | 8 | "version": "4.4.3", |
9 | 9 | "installREnv": true, |
10 | 10 | "installRMarkdown": true, |
11 | 11 | "vscodeRSupport": true, |
12 | 12 | "installVscDebugger": true, |
13 | 13 | "installRadian": true |
14 | | - }{% endif %}{% if python_data_science == 'y' or r_data_science == 'y' %}, |
| 14 | + }{% endif %}{% if python_data_science or r_data_science %}, |
15 | 15 | "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { |
16 | 16 | "version": "1.7.33", |
17 | 17 | "installChromium": true |
18 | 18 | }, |
19 | 19 | "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { |
20 | 20 | "packages": "chromium python3-tk" |
21 | | - }{% endif %}{% if aws == 'y' %}, |
| 21 | + }{% endif %}{% if aws %}, |
22 | 22 | "ghcr.io/devcontainers/features/aws-cli:1": { |
23 | 23 | "version": "2.27.4" |
24 | 24 | }{% endif %} |
25 | | - },{% if python_data_science == 'y' %} |
| 25 | + },{% if python_data_science %} |
26 | 26 | "containerEnv": { |
27 | 27 | "QUARTO_PYTHON": "/workspaces/{{ project_name }}/.venv/bin/python" |
28 | | - },{% endif %}{% if aws == 'y' %} |
| 28 | + },{% endif %}{% if aws %} |
29 | 29 | "initializeCommand": "mkdir -p ${localEnv:HOME}/.aws", |
30 | 30 | "mounts": [ |
31 | 31 | "source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached" |
|
38 | 38 | "vscode": { |
39 | 39 | "extensions": [ |
40 | 40 | "tamasfe.even-better-toml", |
41 | | - "nefrob.vscode-just-syntax"{% if python == 'y' %}, |
| 41 | + "nefrob.vscode-just-syntax"{% if python %}, |
42 | 42 | "ms-python.python", |
43 | 43 | "charliermarsh.ruff"{% if type_checker == 'ty' %}, |
44 | | - "astral-sh.ty"{% endif %}{% endif %}{% if r_data_science == 'y' %}, |
| 44 | + "astral-sh.ty"{% endif %}{% endif %}{% if r_data_science %}, |
45 | 45 | "REditorSupport.r", |
46 | 46 | "RDebugger.r-debugger", |
47 | 47 | "Posit.air-vscode", |
48 | | - "tombi.tombi"{% endif %}{% if python_data_science == 'y' or r_data_science == 'y' %}, |
| 48 | + "tombi.tombi"{% endif %}{% if python_data_science or r_data_science %}, |
49 | 49 | "quarto.quarto"{% endif %} |
50 | | - ]{% if python == 'y' or r_data_science == 'y' %}, |
| 50 | + ]{% if python or r_data_science %}, |
51 | 51 | "settings": { |
52 | | -{% if python == 'y' %} "python.defaultInterpreterPath": "/workspaces/{{ project_name }}/.venv/bin/python", |
| 52 | +{% if python %} "python.defaultInterpreterPath": "/workspaces/{{ project_name }}/.venv/bin/python", |
53 | 53 | "python.testing.pytestArgs": ["tests"], |
54 | 54 | "python.testing.pytestPath": "/workspaces/{{ project_name }}/.venv/bin/pytest", |
55 | 55 | "python.testing.unittestEnabled": false, |
|
62 | 62 | "source.fixAll": "explicit", |
63 | 63 | "source.organizeImports": "explicit" |
64 | 64 | } |
65 | | - }{% if r_data_science == 'y' %},{% endif %} |
66 | | -{% endif %}{% if r_data_science == 'y' %} "r.bracketedPaste": true, |
| 65 | + }{% if r_data_science %},{% endif %} |
| 66 | +{% endif %}{% if r_data_science %} "r.bracketedPaste": true, |
67 | 67 | "r.plot.useHttpgd": true, |
68 | 68 | "r.rterm.linux": "/usr/local/bin/radian", |
69 | 69 | "r.rterm.option": ["--no-save", "--no-restore"], |
|
0 commit comments