-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
40 lines (36 loc) · 1.22 KB
/
settings.json
File metadata and controls
40 lines (36 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
// Python
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
// keep imports tidy automatically
"source.organizeImports": "always"
}
},
"ruff.args": ["--config", "${workspaceFolder}/.ruff.toml"],
"python.linting.enabled": true,
"python.linting.ruffEnabled": true,
// Pyright
"python.analysis.typeCheckingMode": "basic",
// Pytest
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests"],
"python.testing.cwd": "${workspaceFolder}",
// Rust
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
},
// Run Clippy on save (matches pre-commit hooks)
"rust-analyzer.checkOnSave.command": "clippy",
// Prettier for non-Python text formats
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }
}