-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyrightconfig.json
110 lines (108 loc) · 3.83 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"exclude": [
// excludes managed by this repository
// excludes managed by template
"**/node_modules",
"**/.precommit_cache",
"**/.ruff_cache",
"**/.npm_cache",
"**/.pipx_cache",
"**/__pycache__",
"**/vendor_files",
"**/.venv",
"**/venv"
],
"strictListInference": true,
"strictDictionaryInference": true,
"strictSetInference": true,
"analyzeUnannotatedFunctions": true,
"strictParameterNoneValue": true,
"enableTypeIgnoreComments": true,
"deprecateTypingAliases": true,
"reportGeneralTypeIssues": true,
"reportPropertyTypeMismatch": true,
"reportFunctionMemberAccess": true,
"reportMissingImports": true,
"reportMissingModuleSource": true,
"reportInvalidTypeForm": true,
"reportMissingTypeStubs": false,
"reportImportCycles": true,
"reportUnusedClass": true,
"reportUnusedFunction": true,
"reportUnusedVariable": true,
"reportWildcardImportFromLibrary": true,
"reportAbstractUsage": true,
"reportArgumentType": true,
"reportAssertTypeFailure": true,
"reportAssignmentType": true,
"reportAttributeAccessIssue": true,
"reportCallIssue": true,
"reportInconsistentOverload": true,
"reportIndexIssue": true,
"reportInvalidTypeArguments": true,
"reportNoOverloadImplementation": true,
"reportOperatorIssue": true,
"reportOptionalSubscript": true,
"reportOptionalMemberAccess": true,
"reportOptionalCall": true,
"reportOptionalIterable": true,
"reportOptionalContextManager": true,
"reportOptionalOperand": true,
"reportRedeclaration": true,
"reportReturnType": true,
"reportTypedDictNotRequiredAccess": true,
"reportUntypedFunctionDecorator": true,
"reportUntypedClassDecorator": true,
"reportUntypedBaseClass": true,
"reportUntypedNamedTuple": true,
"reportPrivateUsage": false, // already covered by ruff rule SLF001
"reportTypeCommentUsage": true,
"reportPrivateImportUsage": true,
"reportConstantRedefinition": true,
"reportDeprecated": true,
"reportIncompatibleMethodOverride": true,
"reportIncompatibleVariableOverride": true,
"reportInconsistentConstructor": true,
"reportOverlappingOverload": true,
"reportPossiblyUnboundVariable": true,
"reportMissingSuperCall": true,
"reportUninitializedInstanceVariable": true,
"reportInvalidStringEscapeSequence": true,
"reportUnknownParameterType": true,
"reportUnknownArgumentType": true,
"reportUnknownLambdaType": true,
"reportUnknownVariableType": true,
"reportUnknownMemberType": true,
"reportMissingParameterType": true,
"reportMissingTypeArgument": true,
"reportInvalidTypeVarUse": true,
"reportCallInDefaultInitializer": true,
"reportUnnecessaryIsInstance": true,
"reportUnnecessaryCast": true,
"reportUnnecessaryComparison": true,
"reportUnnecessaryContains": true,
"reportAssertAlwaysTrue": true,
"reportSelfClsParameterName": true,
"reportImplicitStringConcatenation": true,
"reportUndefinedVariable": true,
"reportUnboundVariable": true,
"reportInvalidStubStatement": true,
"reportIncompleteStub": true,
"reportUnsupportedDunderAll": true,
"reportUnusedCallResult": true,
"reportUnusedCoroutine": true,
"reportUnusedExcept": true,
"reportUnusedExpression": true,
"reportUnnecessaryTypeIgnoreComment": true,
"reportMatchNotExhaustive": true,
"reportImplicitOverride": true,
"reportShadowedImports": true,
"pythonPlatform": "Linux",
"executionEnvironments": [
{
"root": "tests",
// reportUninitializedInstanceVariable doesn't make any sense for test cases. See https://github.com/microsoft/pyright/discussions/4834#discussioncomment-8496931
"reportUninitializedInstanceVariable": false,
}
]
}