|
| 1 | +{ |
| 2 | + "editor.formatOnSave": true, |
| 3 | + "files.trimTrailingWhitespace": true, |
| 4 | + "files.insertFinalNewline": true, |
| 5 | + |
| 6 | + // Python |
| 7 | + "[python]": { |
| 8 | + "editor.defaultFormatter": "charliermarsh.ruff", |
| 9 | + "editor.codeActionsOnSave": { |
| 10 | + // keep imports tidy automatically |
| 11 | + "source.organizeImports": "always" |
| 12 | + } |
| 13 | + }, |
| 14 | + "ruff.args": [ |
| 15 | + "--config", |
| 16 | + "${workspaceFolder}/.ruff.toml" |
| 17 | + ], |
| 18 | + "python.linting.enabled": true, |
| 19 | + "python.linting.ruffEnabled": true, |
| 20 | + // Pyright |
| 21 | + "python.analysis.typeCheckingMode": "basic", |
| 22 | + |
| 23 | + // Pytest |
| 24 | + "python.testing.pytestEnabled": true, |
| 25 | + "python.testing.pytestArgs": ["tests"], |
| 26 | + "python.testing.cwd": "${workspaceFolder}", |
| 27 | + |
| 28 | + // Rust |
| 29 | + "[rust]": { |
| 30 | + "editor.defaultFormatter": "rust-lang.rust-analyzer", |
| 31 | + "editor.codeActionsOnSave": { |
| 32 | + "source.organizeImports": "always" |
| 33 | + } |
| 34 | + }, |
| 35 | + // Run Clippy on save (matches pre-commit hooks) |
| 36 | + "rust-analyzer.checkOnSave.command": "clippy", |
| 37 | + |
| 38 | + // Prettier for non-Python text formats |
| 39 | + "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, |
| 40 | + "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, |
| 41 | + "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, |
| 42 | + "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } |
| 43 | +} |
0 commit comments