From 9e0b55c7c108dfed93310bcc9d2193e5e379b5fe Mon Sep 17 00:00:00 2001 From: Stella <100439259+StellaHuang95@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:50:11 -0700 Subject: [PATCH] Update tests (#6339) * update tests * Update testing/single/src/codeaction.py Co-authored-by: Erik De Bonte --------- Co-authored-by: Erik De Bonte --- testing/single/.vscode/settings.json | 4 ---- testing/single/pyrightconfig.json | 5 ++++- testing/single/src/codeaction.py | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/single/.vscode/settings.json b/testing/single/.vscode/settings.json index 56e4e827..e36bc933 100644 --- a/testing/single/.vscode/settings.json +++ b/testing/single/.vscode/settings.json @@ -8,11 +8,7 @@ "python.analysis.inlayHints.variableTypes": true, "python.analysis.autoImportCompletions": true, "python.analysis.indexing": true, - "python.analysis.typeCheckingMode": "basic", "python.analysis.importFormat": "absolute", - "python.analysis.diagnosticSeverityOverrides": { - "reportMissingTypeStubs": "information" - }, // "editor.codeActionsOnSave": { "source.fixAll": true }, // "python.analysis.fixAll": [ // "source.unusedImports", diff --git a/testing/single/pyrightconfig.json b/testing/single/pyrightconfig.json index 719e9723..54d1749a 100644 --- a/testing/single/pyrightconfig.json +++ b/testing/single/pyrightconfig.json @@ -9,5 +9,8 @@ "./src" ] } - ] + ], + "reportShadowedImports": "information", + "reportMissingTypeStubs": "information", + "typeCheckingMode": "basic", } \ No newline at end of file diff --git a/testing/single/src/codeaction.py b/testing/single/src/codeaction.py index b77631cc..3e1e52e8 100644 --- a/testing/single/src/codeaction.py +++ b/testing/single/src/codeaction.py @@ -37,6 +37,7 @@ class TypeToMove: # and trigger quick fix and confirm `Add "./outsideLib" to extraPaths` is listed # execute the code action and confirm `extraPaths` is added to `settings.json` # Undo currently does not work: https://github.com/microsoft/pylance-release/issues/5161 +# It adds to `settings.json` even if a config file is present: https://github.com/microsoft/pylance-release/issues/6327 import outerModule