-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyrightconfig.json
43 lines (41 loc) · 1.58 KB
/
pyrightconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// https://microsoft.github.io/pyright/#/configuration
/**
* This configuration starts from strict, demoting the strict errors to warnings.
*
* It totally disables the missing type stubs rule, as it is way too noisy.
*/
{
// Start from strict mode
"typeCheckingMode": "strict",
// This errors whenever an import is missing a type stub file - way too noisy
"reportMissingTypeStubs": "none",
// These are the rest of the rules enabled by strict mode - enable them @ warning
"reportConstantRedefinition": "warning",
"reportDeprecated": "warning",
"reportDuplicateImport": "warning",
"reportIncompleteStub": "warning",
"reportInconsistentConstructor": "warning",
"reportInvalidStubStatement": "warning",
"reportMatchNotExhaustive": "warning",
"reportMissingParameterType": "warning",
"reportMissingTypeArgument": "warning",
"reportPrivateUsage": "warning",
"reportTypeCommentUsage": "warning",
"reportUnknownArgumentType": "warning",
"reportUnknownLambdaType": "warning",
"reportUnknownMemberType": "warning",
"reportUnknownParameterType": "warning",
"reportUnknownVariableType": "warning",
"reportUnnecessaryCast": "warning",
"reportUnnecessaryComparison": "warning",
"reportUnnecessaryContains": "warning",
"reportUnnecessaryIsInstance": "warning",
"reportUnusedClass": "warning",
"reportUnusedImport": "warning",
"reportUnusedFunction": "warning",
"reportUnusedVariable": "warning",
"reportUntypedBaseClass": "warning",
"reportUntypedClassDecorator": "warning",
"reportUntypedFunctionDecorator": "warning",
"reportUntypedNamedTuple": "warning"
}