Skip to content

Commit bc2e08e

Browse files
authored
feat: minify VS Code extensions (#322)
1 parent 5d66ac5 commit bc2e08e

5 files changed

Lines changed: 353 additions & 318 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,47 @@
2020
"customizations": {
2121
"vscode": {
2222
"extensions": [
23+
"astral-sh.ty",
2324
"charliermarsh.ruff",
2425
"DavidAnson.vscode-markdownlint",
25-
"GitHub.copilot",
2626
"GitHub.copilot-chat",
2727
"GitHub.vscode-github-actions",
2828
"GitHub.vscode-pull-request-github",
2929
"ms-azuretools.vscode-docker",
3030
"ms-python.python",
31-
"tamasfe.even-better-toml",
32-
"visualstudioexptteam.vscodeintellicode"
31+
"tamasfe.even-better-toml"
3332
],
3433
"settings": {
34+
"chat.extensionUnification.enabled": true,
35+
"editor.bracketPairColorization.enabled": true,
36+
"editor.codeActionsOnSave": {
37+
"source.fixAll": "explicit",
38+
"source.organizeImports": "explicit"
39+
},
3540
"editor.formatOnSave": true,
41+
"[python]": {
42+
"editor.defaultFormatter": "charliermarsh.ruff"
43+
},
3644
"[toml]": {
3745
"editor.formatOnSave": false
3846
},
3947
"editor.rulers": [
4048
100
4149
],
4250
"files.autoSave": "onFocusChange",
43-
"github.copilot.chat.agent.enabled": true,
4451
"github.copilot.chat.codesearch.enabled": true,
45-
"github.copilot.chat.edits.enabled": true,
46-
"github.copilot.nextEditSuggestions.enabled": true,
52+
"jupyter.kernels.excludePythonEnvironments": [
53+
"/usr/local/bin/python"
54+
],
55+
"notebook.codeActionsOnSave": {
56+
"notebook.source.fixAll": "explicit",
57+
"notebook.source.organizeImports": "explicit"
58+
},
59+
"notebook.formatOnSave.enabled": true,
4760
"python.defaultInterpreterPath": "/opt/venv/bin/python",
61+
"python.languageServer": "None",
4862
"python.terminal.activateEnvironment": false,
63+
"python.testing.pytestEnabled": true,
4964
"terminal.integrated.env.linux": {
5065
"GIT_EDITOR": "code --wait"
5166
},

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies = [
77
"copier>=9.4.1",
88
"pre-commit>=4.1.0",
99
"ruff>=0.9.3",
10+
"ty>=0.0.6",
1011
]
1112

1213
[tool.commitizen]

template/.devcontainer/devcontainer.json.jinja

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"extensions": [
2828
"astral-sh.ty",
2929
"charliermarsh.ruff",
30-
"GitHub.copilot",
3130
"GitHub.copilot-chat",
3231
{%- if ci == 'github' %}
3332
"GitHub.vscode-github-actions",
@@ -38,14 +37,11 @@
3837
"ms-azuretools.vscode-docker",
3938
"ms-python.python",
4039
"ms-toolsai.jupyter",
41-
"ryanluker.vscode-coverage-gutters",
42-
"tamasfe.even-better-toml",
43-
"visualstudioexptteam.vscodeintellicode"
40+
"tamasfe.even-better-toml"
4441
],
4542
"settings": {
46-
"coverage-gutters.coverageFileNames": [
47-
"reports/coverage.xml"
48-
],
43+
"chat.extensionUnification.enabled": true,
44+
"editor.bracketPairColorization.enabled": true,
4945
"editor.codeActionsOnSave": {
5046
"source.fixAll": "explicit",
5147
"source.organizeImports": "explicit"
@@ -61,10 +57,7 @@
6157
100
6258
],
6359
"files.autoSave": "onFocusChange",
64-
"github.copilot.chat.agent.enabled": true,
6560
"github.copilot.chat.codesearch.enabled": true,
66-
"github.copilot.chat.edits.enabled": true,
67-
"github.copilot.nextEditSuggestions.enabled": true,
6861
"jupyter.kernels.excludePythonEnvironments": [
6962
"/usr/local/bin/python"
7063
],
@@ -77,7 +70,6 @@
7770
"python.languageServer": "None",
7871
"python.terminal.activateEnvironment": false,
7972
"python.testing.pytestEnabled": true,
80-
"ruff.importStrategy": "fromEnvironment",
8173
"terminal.integrated.env.linux": {
8274
"GIT_EDITOR": "code --wait"
8375
},

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dev = [
5858
"pytest-mock (>=3.14.0)",
5959
"pytest-xdist (>=3.6.1)",
6060
"ruff (>=0.9.2)",
61-
"ty (>=0.0.5)",
61+
"ty (>=0.0.6)",
6262
{%- if typing == 'strict' %}
6363
"typeguard (>=4.4.1)",
6464
{%- endif %}

0 commit comments

Comments
 (0)