Skip to content

Commit

Permalink
Initial config
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jan 25, 2024
1 parent 04a6bfe commit 58c6f98
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pyrightconfig.json
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",
}

0 comments on commit 58c6f98

Please sign in to comment.