|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json", |
| 3 | + "exclude": [ |
| 4 | + "build", |
| 5 | + ".tox", |
| 6 | + ".eggs", |
| 7 | + "**/extern", // Vendored |
| 8 | + "**/_vendor", // Vendored |
| 9 | + "setuptools/_distutils", // Vendored |
| 10 | + "**/tests", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam |
| 11 | + "**/_*", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam |
| 12 | + ], |
| 13 | + // Our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually. |
| 14 | + // "pythonVersion": "3.8", |
| 15 | + // For now we don't mind if mypy's `type: ignore` comments accidentally suppresses pyright issues |
| 16 | + "enableTypeIgnoreComments": true, |
| 17 | + "typeCheckingMode": "basic", |
| 18 | + // For now, align with mypy's default of skipping unannotated functions, only care about public API which should be annotated |
| 19 | + "analyzeUnannotatedFunctions": false, |
| 20 | + // Avoid raising issues when importing from "extern" modules, as those are added to path dynamically. |
| 21 | + // https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993 |
| 22 | + "reportMissingImports": "none", |
| 23 | + // Too many issues caused by vendoring and dynamic patching, still worth fixing when we can |
| 24 | + "reportAttributeAccessIssue": "warning", |
| 25 | + // Deferred initialization (initialize_options/finalize_options) causes many "potentially None" issues |
| 26 | + // TODO: Fix with type-guards or by changing how it's initialized |
| 27 | + "reportCallIssue": "warning", |
| 28 | + "reportArgumentType": "warning", |
| 29 | + "reportOptionalIterable": "warning", |
| 30 | + "reportOptionalMemberAccess": "warning", |
| 31 | + "reportGeneralTypeIssues": "warning", |
| 32 | + "reportOptionalOperand": "warning", |
| 33 | +} |
0 commit comments