pyright config
This commit is contained in:
29
conf/pyrightconfig.json
Normal file
29
conf/pyrightconfig.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
// Specify which paths to check
|
||||||
|
"include": [
|
||||||
|
"./ad-test/conf/apps/**"
|
||||||
|
],
|
||||||
|
// "typeCheckingMode": "standard",
|
||||||
|
"typeCheckingMode": "basic",
|
||||||
|
// Be somewhat tolerant with regards to imperfect dependencies or types
|
||||||
|
"reportUnknownMemberType": "none",
|
||||||
|
"reportUnusedImport": "warning",
|
||||||
|
"reportMissingTypeStubs": "none",
|
||||||
|
"reportIncompleteStub": "none",
|
||||||
|
"reportUnknownVariableType": "none",
|
||||||
|
"reportUnknownParameterType": "warning",
|
||||||
|
"reportMissingTypeArgument": "warning",
|
||||||
|
"useLibraryCodeForTypes": true, // Homogeneous with pylance's default
|
||||||
|
// Add warnings for probable programming errors
|
||||||
|
"reportUnnecessaryTypeIgnoreComment": "warning",
|
||||||
|
"reportMissingParameterType": "warning",
|
||||||
|
"reportUnnecessaryComparison": "warning",
|
||||||
|
"reportUnnecessaryIsInstance": "warning",
|
||||||
|
"reportUnnecessaryCast": "warning",
|
||||||
|
"reportUnnecessaryContains": "warning",
|
||||||
|
"reportMatchNotExhaustive": "error",
|
||||||
|
"reportUnusedVariable": "warning",
|
||||||
|
"reportUnusedCoroutine": "warning",
|
||||||
|
"reportUnusedExpression": "warning",
|
||||||
|
"reportUnusedFunction": "warning"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user