|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json", |
| 3 | + "typeshedPath": ".", |
| 4 | + "include": [ |
| 5 | + "stdlib", |
| 6 | + "stubs" |
| 7 | + ], |
| 8 | + "exclude": [ |
| 9 | + // Python 2 only modules. |
| 10 | + "**/@python2", |
| 11 | + "stubs/enum34", |
| 12 | + "stubs/fb303", |
| 13 | + "stubs/futures", |
| 14 | + "stubs/ipaddress", |
| 15 | + "stubs/kazoo", |
| 16 | + "stubs/openssl-python", |
| 17 | + "stubs/pathlib2", |
| 18 | + "stubs/pymssql", |
| 19 | + "stubs/Routes", |
| 20 | + "stubs/scribe", |
| 21 | + "stubs/tornado", |
| 22 | + // Modules that are incomplete in some way. |
| 23 | + "stdlib/sqlite3/dbapi2.pyi", |
| 24 | + "stdlib/tkinter", |
| 25 | + "stdlib/xml/dom", |
| 26 | + "stdlib/xml/sax", |
| 27 | + "stubs/backports", |
| 28 | + "stubs/backports_abc", |
| 29 | + "stubs/boto", |
| 30 | + "stubs/cryptography", |
| 31 | + "stubs/docutils", |
| 32 | + "stubs/Flask", |
| 33 | + "stubs/Jinja2", |
| 34 | + "stubs/Markdown", |
| 35 | + "stubs/Pillow", |
| 36 | + "stubs/paramiko", |
| 37 | + "stubs/protobuf", |
| 38 | + "stubs/PyMySQL", |
| 39 | + "stubs/python-dateutil", |
| 40 | + "stubs/pyvmomi", |
| 41 | + "stubs/PyYAML", |
| 42 | + "stubs/redis", |
| 43 | + "stubs/requests", |
| 44 | + "stubs/simplejson", |
| 45 | + "stubs/waitress", |
| 46 | + "stubs/Werkzeug" |
| 47 | + ], |
| 48 | + "typeCheckingMode": "basic", |
| 49 | + "strictListInference": true, |
| 50 | + "strictDictionaryInference": true, |
| 51 | + "strictParameterNoneValue": true, |
| 52 | + "reportFunctionMemberAccess": "error", |
| 53 | + "reportMissingModuleSource": "none", |
| 54 | + "reportMissingTypeStubs": "error", |
| 55 | + "reportUnusedImport": "error", |
| 56 | + "reportUnusedClass": "error", |
| 57 | + "reportUnusedFunction": "error", |
| 58 | + "reportUnusedVariable": "error", |
| 59 | + "reportDuplicateImport": "error", |
| 60 | + "reportOptionalSubscript": "error", |
| 61 | + "reportOptionalMemberAccess": "error", |
| 62 | + "reportOptionalCall": "error", |
| 63 | + "reportOptionalIterable": "error", |
| 64 | + "reportOptionalContextManager": "error", |
| 65 | + "reportOptionalOperand": "error", |
| 66 | + "reportUntypedFunctionDecorator": "error", |
| 67 | + "reportUntypedClassDecorator": "error", |
| 68 | + "reportUntypedBaseClass": "error", |
| 69 | + "reportUntypedNamedTuple": "error", |
| 70 | + "reportPrivateUsage": "error", |
| 71 | + "reportConstantRedefinition": "error", |
| 72 | + "reportIncompatibleMethodOverride": "error", |
| 73 | + "reportIncompatibleVariableOverride": "error", |
| 74 | + "reportInvalidStringEscapeSequence": "error", |
| 75 | + "reportUnknownParameterType": "error", |
| 76 | + "reportUnknownArgumentType": "error", |
| 77 | + "reportUnknownLambdaType": "error", |
| 78 | + "reportUnknownVariableType": "error", |
| 79 | + "reportUnknownMemberType": "error", |
| 80 | + "reportMissingTypeArgument": "error", |
| 81 | + "reportUndefinedVariable": "error", |
| 82 | + "reportUnboundVariable": "error", |
| 83 | + "reportInvalidStubStatement": "error", |
| 84 | + "reportUnsupportedDunderAll": "error", |
| 85 | + "reportInvalidTypeVarUse": "error", |
| 86 | + "reportPropertyTypeMismatch": "error", |
| 87 | + "reportSelfClsParameterName": "error", |
| 88 | + // Overlapping overloads cannot be enabled at this time because |
| 89 | + // of the "factions.Fraction.__pow__" method and "tasks.gather" function. |
| 90 | + // Mypy's overlapping overload logic misses these issues (see mypy |
| 91 | + // issue #10143 and #10157). |
| 92 | + "reportOverlappingOverload": "none" |
| 93 | +} |
0 commit comments