From b5511ca6489774d714183ab7e3d6acc16c0d5a73 Mon Sep 17 00:00:00 2001 From: Avasam Date: Tue, 5 Dec 2023 07:24:18 -0500 Subject: [PATCH] Go back to default for `useLibraryCodeForTypes` & delete removed vscode-python configs. (#11101) --- .vscode/settings.default.json | 12 ------------ pyrightconfig.scripts_and_tests.json | 2 -- 2 files changed, 14 deletions(-) diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index d06ef6034..38709967d 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -71,23 +71,11 @@ ], "editor.defaultFormatter": "ms-python.black-formatter" }, - // Use the new dedicated extensions instead - "python.formatting.provider": "none", - "python.linting.enabled": false, - "python.linting.mypyEnabled": false, - "python.linting.flake8Enabled": false, - "python.linting.pycodestyleEnabled": false, - "python.linting.prospectorEnabled": false, - "python.linting.pylamaEnabled": false, - "python.linting.pylintEnabled": false, - "python.linting.banditEnabled": false, // python.analysis is Pylance (pyright) configurations "python.analysis.fixAll": [ "source.unusedImports" // Explicitly omiting "source.convertImportFormat", some stubs use relative imports ], - // Important to use `types-*` and flag untyped dependencies. - "python.analysis.useLibraryCodeForTypes": false, "python.analysis.typeshedPaths": [ "${workspaceFolder}" ], diff --git a/pyrightconfig.scripts_and_tests.json b/pyrightconfig.scripts_and_tests.json index ef506c53e..1dd97d444 100644 --- a/pyrightconfig.scripts_and_tests.json +++ b/pyrightconfig.scripts_and_tests.json @@ -6,8 +6,6 @@ "tests", ], "typeCheckingMode": "strict", - // Runtime libraries used by typeshed are not all py.typed - "useLibraryCodeForTypes": true, // More of a lint. Unwanted for typeshed's own code. "reportImplicitStringConcatenation": "none", // Extra strict settings