|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json", |
| 3 | + "exclude": [ |
| 4 | + "build", |
| 5 | + ".tox", |
| 6 | + "**/extern", // Vendored |
| 7 | + "**/_vendor", // Vendored |
| 8 | + "setuptools/_distutils", // Vendored |
| 9 | + "**/tests", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam |
| 10 | + "**/_*", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam |
| 11 | + ], |
| 12 | + // CI should test for all versions, local development gets hints for oldest supported |
| 13 | + "pythonVersion": "3.8", |
| 14 | + // For now we don't mind if mypy's `type: ignore` comments accidentally suppresses pyright issues |
| 15 | + "enableTypeIgnoreComments": true, |
| 16 | + "typeCheckingMode": "basic", |
| 17 | + // For now, align with mypy's default of skipping unnanotated functions, only care about public API which should be annotated |
| 18 | + "analyzeUnannotatedFunctions": false, |
| 19 | + // TODO: Test environment is not yet properly configured to install all imported packages |
| 20 | + "reportMissingImports": "none", |
| 21 | + // Too many issues caused by vendoring and dynamic patching, still worth fixing when we can |
| 22 | + "reportAttributeAccessIssue": "warning", |
| 23 | + // Defered initialization (initialize_options/finalize_options) causes many "potentially None" issues |
| 24 | + // TODO: Fix with type-guards or by changing how it's initialized |
| 25 | + "reportCallIssue": "warning", |
| 26 | + "reportArgumentType": "warning", |
| 27 | + "reportOptionalIterable": "warning", |
| 28 | + "reportOptionalMemberAccess": "warning", |
| 29 | + "reportGeneralTypeIssues": "warning", |
| 30 | + "reportOptionalOperand": "warning", |
| 31 | +} |
0 commit comments