Add: VSCode settings
Enabling type checking with Pylance.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,3 @@
|
|||||||
.vscode/
|
|
||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
venv/
|
venv/
|
||||||
.venv/
|
.venv/
|
||||||
|
|||||||
6
.vscode/extensions.json
vendored
Normal file
6
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.vscode-pylance"
|
||||||
|
]
|
||||||
|
}
|
||||||
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