From 9bac5b4cb696ca08396feff888d5dd342625004d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 17 Feb 2022 13:25:22 +1000 Subject: [PATCH] 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 --- .vscode/settings.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 53e657d93..6793814bf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,21 +4,20 @@ "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/*/**": true, - ".bazel/**": true, - "dist/**": 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", "dist"], + "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, - "dist/**": true + ".bazel/**": true } }