Skip to content

Commit e07b962

Browse files
authored
Update VSCode settings for Python Tools (#158)
Signed-off-by: Mattt Zmuda <[email protected]>
1 parent d9e41ea commit e07b962

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"charliermarsh.ruff",
44
"ms-python.black-formatter",
55
"ms-python.python",
6-
"ms-python.vscode-pylance"
6+
"ms-python.vscode-pylance",
7+
"ms-python.mypy-type-checker"
78
]
89
}

.vscode/settings.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@
77
"files.insertFinalNewline": true,
88
"files.trimFinalNewlines": true,
99
"[python]": {
10+
"editor.defaultFormatter": "ms-python.black-formatter",
1011
"editor.formatOnSave": true,
1112
"editor.codeActionsOnSave": {
1213
"source.fixAll": true,
1314
"source.organizeImports": true
1415
},
15-
"editor.defaultFormatter": null
1616
},
1717
"python.languageServer": "Pylance",
18-
"python.testing.pytestArgs": ["-vvv", "python"],
18+
"python.testing.pytestArgs": [
19+
"-vvv",
20+
"python"
21+
],
1922
"python.testing.unittestEnabled": false,
2023
"python.testing.pytestEnabled": true,
21-
"python.formatting.provider": "black",
22-
"python.linting.mypyEnabled": true,
23-
"python.linting.mypyArgs": ["--show-column-numbers", "--no-pretty"],
24-
"ruff.args": ["--config=pyproject.toml"]
24+
"mypy-type-checker.args": [
25+
"--show-column-numbers",
26+
"--no-pretty"
27+
],
28+
"ruff.args": [
29+
"--config=pyproject.toml"
30+
],
2531
}

0 commit comments

Comments
 (0)