Skip to content

Commit 6ed23bc

Browse files
authored
feat: minimize devcontainer.json extensions and settings (#342)
1 parent 61728c9 commit 6ed23bc

2 files changed

Lines changed: 16 additions & 39 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,49 +24,35 @@
2424
"astral-sh.ty",
2525
"charliermarsh.ruff",
2626
"DavidAnson.vscode-markdownlint",
27-
"GitHub.copilot-chat",
2827
"GitHub.vscode-github-actions",
2928
"GitHub.vscode-pull-request-github",
30-
"ms-azuretools.vscode-docker",
29+
"ms-azuretools.vscode-containers",
3130
"ms-python.python",
3231
"tamasfe.even-better-toml"
3332
],
3433
"settings": {
35-
"chat.extensionUnification.enabled": true,
36-
"editor.bracketPairColorization.enabled": true,
37-
"editor.codeActionsOnSave": {
38-
"source.fixAll": "explicit",
39-
"source.organizeImports": "explicit"
40-
},
41-
"editor.formatOnSave": true,
4234
"[python]": {
43-
"editor.defaultFormatter": "charliermarsh.ruff"
35+
"editor.codeActionsOnSave": {
36+
"source.fixAll.ruff": "explicit",
37+
"source.organizeImports.ruff": "explicit"
38+
},
39+
"editor.defaultFormatter": "charliermarsh.ruff",
40+
"editor.formatOnSave": true
4441
},
4542
"[toml]": {
4643
"editor.formatOnSave": false
4744
},
4845
"editor.rulers": [
4946
100
5047
],
51-
"files.autoSave": "onFocusChange",
52-
"github.copilot.chat.codesearch.enabled": true,
5348
"jupyter.kernels.excludePythonEnvironments": [
5449
"/usr/local/bin/python"
5550
],
56-
"notebook.codeActionsOnSave": {
57-
"notebook.source.fixAll": "explicit",
58-
"notebook.source.organizeImports": "explicit"
59-
},
60-
"notebook.formatOnSave.enabled": true,
51+
"python-envs.terminal.autoActivationType": "off",
6152
"python.defaultInterpreterPath": "/opt/venv/bin/python",
62-
"python.languageServer": "None",
63-
"python.terminal.activateEnvironment": false,
6453
"python.testing.pytestEnabled": true,
6554
"terminal.integrated.env.linux": {
6655
"GIT_EDITOR": "code --wait"
67-
},
68-
"terminal.integrated.env.mac": {
69-
"GIT_EDITOR": "code --wait"
7056
}
7157
}
7258
}

template/.devcontainer/devcontainer.json.jinja

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,37 +29,32 @@
2929
"extensions": [
3030
"astral-sh.ty",
3131
"charliermarsh.ruff",
32-
"GitHub.copilot-chat",
3332
{%- if ci == 'github' %}
3433
"GitHub.vscode-github-actions",
3534
"GitHub.vscode-pull-request-github",
3635
{%- elif ci == 'gitlab' %}
3736
"GitLab.gitlab-workflow",
3837
{%- endif %}
39-
"ms-azuretools.vscode-docker",
38+
"ms-azuretools.vscode-containers",
4039
"ms-python.python",
4140
"ms-toolsai.jupyter",
4241
"tamasfe.even-better-toml"
4342
],
4443
"settings": {
45-
"chat.extensionUnification.enabled": true,
46-
"editor.bracketPairColorization.enabled": true,
47-
"editor.codeActionsOnSave": {
48-
"source.fixAll": "explicit",
49-
"source.organizeImports": "explicit"
50-
},
51-
"editor.formatOnSave": true,
5244
"[python]": {
53-
"editor.defaultFormatter": "charliermarsh.ruff"
45+
"editor.codeActionsOnSave": {
46+
"source.fixAll.ruff": "explicit",
47+
"source.organizeImports.ruff": "explicit"
48+
},
49+
"editor.defaultFormatter": "charliermarsh.ruff",
50+
"editor.formatOnSave": true
5451
},
5552
"[toml]": {
5653
"editor.formatOnSave": false
5754
},
5855
"editor.rulers": [
5956
100
6057
],
61-
"files.autoSave": "onFocusChange",
62-
"github.copilot.chat.codesearch.enabled": true,
6358
"jupyter.kernels.excludePythonEnvironments": [
6459
"/usr/local/bin/python"
6560
],
@@ -68,15 +63,11 @@
6863
"notebook.source.organizeImports": "explicit"
6964
},
7065
"notebook.formatOnSave.enabled": true,
66+
"python-envs.terminal.autoActivationType": "off",
7167
"python.defaultInterpreterPath": "/opt/venv/bin/python",
72-
"python.languageServer": "None",
73-
"python.terminal.activateEnvironment": false,
7468
"python.testing.pytestEnabled": true,
7569
"terminal.integrated.env.linux": {
7670
"GIT_EDITOR": "code --wait"
77-
},
78-
"terminal.integrated.env.mac": {
79-
"GIT_EDITOR": "code --wait"
8071
}
8172
}
8273
}

0 commit comments

Comments
 (0)