-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json", | ||
"exclude": [ | ||
"build", | ||
".tox", | ||
"**/extern", // Vendored | ||
"**/_vendor", // Vendored | ||
"setuptools/_distutils", // Vendored | ||
"**/tests", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam | ||
"**/_*", // Disabled as long as analyzeUnannotatedFunctions=false to reduce log spam | ||
], | ||
// CI should test for all versions, local development gets hints for oldest supported | ||
"pythonVersion": "3.8", | ||
// For now we don't mind if mypy's `type: ignore` comments accidentally suppresses pyright issues | ||
"enableTypeIgnoreComments": true, | ||
"typeCheckingMode": "basic", | ||
// For now, align with mypy's default of skipping unnanotated functions, only care about public API which should be annotated | ||
"analyzeUnannotatedFunctions": false, | ||
// TODO: Test environment is not yet properly configured to install all imported packages | ||
"reportMissingImports": "none", | ||
// Too many issues caused by vendoring and dynamic patching, still worth fixing when we can | ||
"reportAttributeAccessIssue": "warning", | ||
// Defered initialization (initialize_options/finalize_options) causes many "potentially None" issues | ||
// TODO: Fix with type-guards or by changing how it's initialized | ||
"reportCallIssue": "warning", | ||
"reportArgumentType": "warning", | ||
"reportOptionalIterable": "warning", | ||
"reportOptionalMemberAccess": "warning", | ||
"reportGeneralTypeIssues": "warning", | ||
"reportOptionalOperand": "warning", | ||
} |