Skip to content

Commit 7a47359

Browse files
committed
🔧 better .vscode config
1 parent 23cd0a3 commit 7a47359

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

‎.vscode/extensions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"charliermarsh.ruff",
44
"detachhead.basedpyright",
55
"ms-python.mypy-type-checker",
6-
"ms-python.python"
6+
"ms-python.python",
7+
"tamasfe.even-better-toml",
8+
"tekumara.typos-vscode"
79
],
810
"unwantedRecommendations": ["ms-pyright.pyright", "ms-python.vscode-pylance"]
911
}

‎.vscode/settings.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
11
{
2-
"[json]": {
2+
"[json|jsonc|yaml|yml]": {
33
"editor.tabSize": 2
44
},
5-
"[jsonc]": {
6-
"editor.tabSize": 2
7-
},
8-
"[markdown]": {
5+
"[markdown|python]": {
96
"editor.rulers": [130]
107
},
11-
"[python]": {
12-
"editor.rulers": [130]
8+
"[toml]": {
9+
"editor.rulers": [100],
10+
"editor.tabSize": 4
1311
},
14-
"[yaml]": {
15-
"editor.autoIndent": "advanced",
16-
"editor.tabSize": 2
17-
},
18-
"editor.rulers": [88],
19-
"editor.tabSize": 4,
20-
"git.branchProtection": ["master"],
21-
"mypy-type-checker.args": [
22-
"--ide",
23-
"--config-file=${workspaceFolder}/pyproject.toml"
24-
],
25-
"mypy-type-checker.cwd": "${fileDirname}",
12+
"evenBetterToml.formatter.alignComments": true,
13+
"evenBetterToml.formatter.allowedBlankLines": 2,
14+
"evenBetterToml.formatter.arrayTrailingComma": true,
15+
"evenBetterToml.formatter.columnWidth": 100,
16+
"evenBetterToml.formatter.compactArrays": true,
17+
"evenBetterToml.formatter.compactInlineTables": true,
18+
"evenBetterToml.formatter.indentString": " ",
19+
"evenBetterToml.formatter.indentTables": true,
20+
"evenBetterToml.formatter.trailingNewline": true,
21+
"mypy-type-checker.args": ["--ide"],
2622
"mypy-type-checker.path": [
2723
"uv",
2824
"run",
2925
"--frozen",
30-
"--no-editable",
3126
"--isolated",
27+
"--no-editable",
3228
"--refresh-package=scipy-stubs",
3329
"mypy"
3430
]

0 commit comments

Comments
 (0)