9bac5b4cb6
The default settings don't understand our folder layout (leading to errors), and place cache files in the root folder. While there is a setting to provide extra arguments to mypy which we could use to address the former, paths like ~/.cache do not appear to be supported. Easier to just rely on pyright for in-IDE linting, and invoke mypy either via bazel, or via tools/mypy-watch + remove unused dist/ exclude
24 lines
806 B
JSON
24 lines
806 B
JSON
{
|
|
"editor.formatOnSave": true,
|
|
"files.watcherExclude": {
|
|
"**/.git/objects/**": true,
|
|
"**/.git/subtree-cache/**": true,
|
|
"**/node_modules/*/**": true,
|
|
".bazel/**": true
|
|
},
|
|
"python.analysis.extraPaths": ["./pylib"],
|
|
"python.formatting.provider": "black",
|
|
"python.linting.mypyEnabled": false,
|
|
"rust-analyzer.cargo.runBuildScripts": true,
|
|
"rust-analyzer.checkOnSave.allTargets": false,
|
|
"rust-analyzer.files.excludeDirs": [".bazel", "node_modules"],
|
|
"rust-analyzer.procMacro.enable": true,
|
|
// this formats 'use' blocks in a nicer way, but requires you to run
|
|
// 'rustup install nightly'.
|
|
"rust-analyzer.rustfmt.extraArgs": ["+nightly"],
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
".bazel/**": true
|
|
}
|
|
}
|