Add: VSCode settings
Enabling type checking with Pylance.
This commit is contained in:
22
.vscode/settings.json
vendored
Normal file
22
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
// Pylance の Type Checking を有効化
|
||||
"python.languageServer": "Pylance",
|
||||
"python.analysis.typeCheckingMode": "strict",
|
||||
// Pylance の Type Checking のうち、いくつかのエラー報告を抑制する
|
||||
"python.analysis.diagnosticSeverityOverrides": {
|
||||
"reportConstantRedefinition": "none",
|
||||
"reportGeneralTypeIssues": "warning",
|
||||
"reportMissingParameterType": "warning",
|
||||
"reportMissingTypeStubs": "none",
|
||||
"reportPrivateImportUsage": "none",
|
||||
"reportPrivateUsage": "warning",
|
||||
"reportShadowedImports": "none",
|
||||
"reportUnnecessaryComparison": "none",
|
||||
"reportUnknownArgumentType": "none",
|
||||
"reportUnknownMemberType": "none",
|
||||
"reportUnknownParameterType": "warning",
|
||||
"reportUnknownVariableType": "none",
|
||||
"reportUnusedFunction": "none",
|
||||
"reportUnusedVariable": "information",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user