mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
disable automatic mypy invocation in VS Code
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
This commit is contained in:
parent
d29a0beb40
commit
9bac5b4cb6
1 changed files with 4 additions and 5 deletions
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
|
@ -4,21 +4,20 @@
|
||||||
"**/.git/objects/**": true,
|
"**/.git/objects/**": true,
|
||||||
"**/.git/subtree-cache/**": true,
|
"**/.git/subtree-cache/**": true,
|
||||||
"**/node_modules/*/**": true,
|
"**/node_modules/*/**": true,
|
||||||
".bazel/**": true,
|
".bazel/**": true
|
||||||
"dist/**": true
|
|
||||||
},
|
},
|
||||||
"python.analysis.extraPaths": ["./pylib"],
|
"python.analysis.extraPaths": ["./pylib"],
|
||||||
"python.formatting.provider": "black",
|
"python.formatting.provider": "black",
|
||||||
|
"python.linting.mypyEnabled": false,
|
||||||
"rust-analyzer.cargo.runBuildScripts": true,
|
"rust-analyzer.cargo.runBuildScripts": true,
|
||||||
"rust-analyzer.checkOnSave.allTargets": false,
|
"rust-analyzer.checkOnSave.allTargets": false,
|
||||||
"rust-analyzer.files.excludeDirs": [".bazel", "node_modules", "dist"],
|
"rust-analyzer.files.excludeDirs": [".bazel", "node_modules"],
|
||||||
"rust-analyzer.procMacro.enable": true,
|
"rust-analyzer.procMacro.enable": true,
|
||||||
// this formats 'use' blocks in a nicer way, but requires you to run
|
// this formats 'use' blocks in a nicer way, but requires you to run
|
||||||
// 'rustup install nightly'.
|
// 'rustup install nightly'.
|
||||||
"rust-analyzer.rustfmt.extraArgs": ["+nightly"],
|
"rust-analyzer.rustfmt.extraArgs": ["+nightly"],
|
||||||
"search.exclude": {
|
"search.exclude": {
|
||||||
"**/node_modules": true,
|
"**/node_modules": true,
|
||||||
".bazel/**": true,
|
".bazel/**": true
|
||||||
"dist/**": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue