Skip to content

Commit d42d2c6

Browse files
committed
ruff vscode settings
1 parent d1ae3a0 commit d42d2c6

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.vscode/settings.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
{
22
"ruff.configuration": "pyproject.toml",
33
"notebook.defaultFormatter": "charliermarsh.ruff",
4+
"ruff.nativeServer": true,
45
"ruff.lineLength": 200,
56
"python.analysis.typeCheckingMode": "basic",
6-
"python.testing.pytestArgs": [
7-
"-s",
8-
],
7+
"[python]": {
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll": "explicit",
11+
"source.organizeImports": "explicit"
12+
},
13+
"editor.defaultFormatter": "charliermarsh.ruff"
14+
},
15+
"notebook.formatOnSave.enabled": true,
16+
"notebook.codeActionsOnSave": {
17+
"notebook.source.fixAll": "explicit",
18+
"notebook.source.organizeImports": "explicit"
19+
},
920
"python.testing.unittestEnabled": false,
1021
"python.testing.pytestEnabled": true,
11-
"python.testing.autoTestDiscoverOnSavePattern": "tests/**/*.py",
22+
"python.testing.pytestArgs": ["-s"],
23+
"python.testing.autoTestDiscoverOnSavePattern": "tests/**/*.py"
1224
}

0 commit comments

Comments
 (0)