Skip to content

Commit 84b7a06

Browse files
committed
update vscode settings
1 parent 58dbe00 commit 84b7a06

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
// See more at https://go.microsoft.com/fwlink/?LinkId=827846
44
"recommendations": [
5+
"charliermarsh.ruff",
56
"ms-python.python",
67
"ms-python.vscode-pylance",
78
"redhat.vscode-yaml"

src/.vscode/settings.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
// -*- mode: jsonc -*-
22
{
3-
"python.pythonPath": ".venv/bin/python",
4-
// Formatters
5-
"python.formatting.provider": "black",
6-
"editor.formatOnSave": true,
7-
"editor.codeActionsOnSave": {
8-
"source.organizeImports": true // isort
3+
// Linting/formatting
4+
"[python]": {
5+
"editor.defaultFormatter": "charliermarsh.ruff",
6+
"editor.formatOnSave": true,
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll": true,
9+
"source.organizeImports": true
10+
}
911
},
10-
// Linters
11-
"python.linting.enabled": true,
12-
"python.linting.pylintEnabled": false,
13-
"python.linting.flake8Enabled": true,
14-
"python.linting.flake8Path": "pflake8",
15-
"python.linting.mypyEnabled": true,
1612
// Testing
17-
"python.testing.pytestEnabled": true
13+
"python.testing.pytestEnabled": true,
14+
// Typechecking
15+
"python.analysis.autoImportCompletions": true,
16+
"python.analysis.typeCheckingMode": "basic"
1817
}

0 commit comments

Comments
 (0)