basedpyright
Basedpyright configuration file
| Type | object |
|---|---|
| File match |
basedpyrightconfig.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/basedpyright/latest.json |
| Source | https://raw.githubusercontent.com/DetachHead/basedpyright/refs/heads/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object
Pyright Configuration Schema
Properties
extends
string
pattern=^(.*)$
include
string[]
exclude
string[]
ignore
string[]
strict
string[]
defineConstant
Record<string, string | boolean>
typeCheckingMode
string
useLibraryCodeForTypes
boolean
typeshedPath
string
pattern=^(.*)$
stubPath
string
pattern=^(.*)$
disableBytesTypePromotions
boolean
strictListInference
boolean
strictSetInference
boolean
strictDictionaryInference
boolean
analyzeUnannotatedFunctions
boolean
strictParameterNoneValue
boolean
enableExperimentalFeatures
boolean
enableTypeIgnoreComments
boolean
enableReachabilityAnalysis
boolean
deprecateTypingAliases
boolean
strictGenericNarrowing
boolean
reportGeneralTypeIssues
diagnostic
reportPropertyTypeMismatch
diagnostic
reportFunctionMemberAccess
diagnostic
reportMissingImports
diagnostic
reportMissingModuleSource
diagnostic
reportInvalidTypeForm
diagnostic
reportMissingTypeStubs
diagnostic
reportImportCycles
diagnostic
reportUnusedImport
diagnostic
reportUnusedClass
diagnostic
reportUnusedFunction
diagnostic
reportUnusedVariable
diagnostic
reportDuplicateImport
diagnostic
reportWildcardImportFromLibrary
diagnostic
reportAbstractUsage
diagnostic
reportArgumentType
diagnostic
reportAssertTypeFailure
diagnostic
reportAssignmentType
diagnostic
reportAttributeAccessIssue
diagnostic
reportCallIssue
diagnostic
reportInconsistentOverload
diagnostic
reportIndexIssue
diagnostic
reportInvalidTypeArguments
diagnostic
reportNoOverloadImplementation
diagnostic
reportOperatorIssue
diagnostic
reportOptionalSubscript
diagnostic
reportOptionalMemberAccess
diagnostic
reportOptionalCall
diagnostic
reportOptionalIterable
diagnostic
reportOptionalContextManager
diagnostic
reportOptionalOperand
diagnostic
reportRedeclaration
diagnostic
reportReturnType
diagnostic
reportTypedDictNotRequiredAccess
diagnostic
reportUntypedFunctionDecorator
diagnostic
reportUntypedClassDecorator
diagnostic
reportUntypedBaseClass
diagnostic
reportUntypedNamedTuple
diagnostic
reportPrivateUsage
diagnostic
reportTypeCommentUsage
diagnostic
reportPrivateImportUsage
diagnostic
reportConstantRedefinition
diagnostic
reportDeprecated
diagnostic
reportIncompatibleMethodOverride
diagnostic
reportIncompatibleVariableOverride
diagnostic
reportInconsistentConstructor
diagnostic
reportOverlappingOverload
diagnostic
reportPossiblyUnboundVariable
diagnostic
reportMissingSuperCall
diagnostic
reportUninitializedInstanceVariable
diagnostic
reportInvalidStringEscapeSequence
diagnostic
reportUnknownParameterType
diagnostic
reportUnknownArgumentType
diagnostic
reportUnknownLambdaType
diagnostic
reportUnknownVariableType
diagnostic
reportUnknownMemberType
diagnostic
reportMissingParameterType
diagnostic
reportMissingTypeArgument
diagnostic
reportInvalidTypeVarUse
diagnostic
reportCallInDefaultInitializer
diagnostic
reportUnnecessaryIsInstance
diagnostic
reportUnnecessaryCast
diagnostic
reportUnnecessaryComparison
diagnostic
reportUnnecessaryContains
diagnostic
reportAssertAlwaysTrue
diagnostic
reportSelfClsParameterName
diagnostic
reportImplicitStringConcatenation
diagnostic
reportUnboundVariable
diagnostic
reportUnhashable
diagnostic
reportUndefinedVariable
diagnostic
reportInvalidStubStatement
diagnostic
reportIncompleteStub
diagnostic
reportUnsupportedDunderAll
diagnostic
reportUnusedCallResult
diagnostic
reportUnusedCoroutine
diagnostic
reportUnusedExcept
diagnostic
reportUnusedExpression
diagnostic
reportUnnecessaryTypeIgnoreComment
diagnostic
reportMatchNotExhaustive
diagnostic
reportImplicitOverride
diagnostic
reportUnreachable
diagnostic
reportAny
diagnostic
reportExplicitAny
diagnostic
reportIgnoreCommentWithoutRule
diagnostic
reportPrivateLocalImportUsage
diagnostic
reportImplicitRelativeImport
diagnostic
reportInvalidCast
diagnostic
reportUnsafeMultipleInheritance
diagnostic
reportUnusedParameter
diagnostic
reportImplicitAbstractClass
diagnostic
reportIncompatibleUnannotatedOverride
diagnostic
reportUnannotatedClassAttribute
diagnostic
reportInvalidAbstractMethod
diagnostic
reportSelfClsDefault
diagnostic
reportEmptyAbstractUsage
diagnostic
extraPaths
string[]
pythonVersion
string
pattern=^3\.[0-9]+$
pythonPlatform
string
pattern=^(Linux|Windows|Darwin|All)$
venvPath
string
pattern=^(.*)$
venv
string
pattern=^(.*)$
verboseOutput
boolean
baselineFile
string
executionEnvironments
object[]
Definitions
diagnostic
boolean | string
extraPaths
string[]
pythonVersion
string
"3.7"
pythonPlatform
string
"Linux"
disableBytesTypePromotions
boolean
strictListInference
boolean
strictSetInference
boolean
strictDictionaryInference
boolean
analyzeUnannotatedFunctions
boolean
strictParameterNoneValue
boolean
enableBasedFeatures
boolean
enableExperimentalFeatures
boolean
enableTypeIgnoreComments
boolean
enableReachabilityAnalysis
boolean
deprecateTypingAliases
boolean
strictGenericNarrowing
boolean
reportGeneralTypeIssues
boolean | string
reportPropertyTypeMismatch
boolean | string
reportFunctionMemberAccess
boolean | string
reportMissingImports
boolean | string
reportMissingModuleSource
boolean | string
reportInvalidTypeForm
boolean | string
reportMissingTypeStubs
boolean | string
reportImportCycles
boolean | string
reportUnusedImport
boolean | string
reportUnusedClass
boolean | string
reportUnusedFunction
boolean | string
reportUnusedVariable
boolean | string
reportDuplicateImport
boolean | string
reportWildcardImportFromLibrary
boolean | string
reportAbstractUsage
boolean | string
reportArgumentType
boolean | string
reportAssertTypeFailure
boolean | string
reportAssignmentType
boolean | string
reportAttributeAccessIssue
boolean | string
reportCallIssue
boolean | string
reportInconsistentOverload
boolean | string
reportIndexIssue
boolean | string
reportInvalidTypeArguments
boolean | string
reportNoOverloadImplementation
boolean | string
reportOperatorIssue
boolean | string
reportOptionalSubscript
boolean | string
reportOptionalMemberAccess
boolean | string
reportOptionalCall
boolean | string
reportOptionalIterable
boolean | string
reportOptionalContextManager
boolean | string
reportOptionalOperand
boolean | string
reportRedeclaration
boolean | string
reportReturnType
boolean | string
reportTypedDictNotRequiredAccess
boolean | string
reportUntypedFunctionDecorator
boolean | string
reportUntypedClassDecorator
boolean | string
reportUntypedBaseClass
boolean | string
reportUntypedNamedTuple
boolean | string
reportPrivateUsage
boolean | string
reportTypeCommentUsage
boolean | string
reportPrivateImportUsage
boolean | string
reportConstantRedefinition
boolean | string
reportDeprecated
boolean | string
reportIncompatibleMethodOverride
boolean | string
reportIncompatibleVariableOverride
boolean | string
reportInconsistentConstructor
boolean | string
reportOverlappingOverload
boolean | string
reportPossiblyUnboundVariable
boolean | string
reportMissingSuperCall
boolean | string
reportUninitializedInstanceVariable
boolean | string
reportInvalidStringEscapeSequence
boolean | string
reportUnknownParameterType
boolean | string
reportUnknownArgumentType
boolean | string
reportUnknownLambdaType
boolean | string
reportUnknownVariableType
boolean | string
reportUnknownMemberType
boolean | string
reportMissingParameterType
boolean | string
reportMissingTypeArgument
boolean | string
reportInvalidTypeVarUse
boolean | string
reportCallInDefaultInitializer
boolean | string
reportUnnecessaryIsInstance
boolean | string
reportUnnecessaryCast
boolean | string
reportUnnecessaryComparison
boolean | string
reportUnnecessaryContains
boolean | string
reportAssertAlwaysTrue
boolean | string
reportSelfClsParameterName
boolean | string
reportImplicitStringConcatenation
boolean | string
reportUnboundVariable
boolean | string
reportUnhashable
boolean | string
reportUndefinedVariable
boolean | string
reportInvalidStubStatement
boolean | string
reportIncompleteStub
boolean | string
reportUnsupportedDunderAll
boolean | string
reportUnusedCallResult
boolean | string
reportUnusedCoroutine
boolean | string
reportUnusedExcept
boolean | string
reportUnusedExpression
boolean | string
reportUnnecessaryTypeIgnoreComment
boolean | string
reportMatchNotExhaustive
boolean | string
reportImplicitOverride
boolean | string
reportUnreachable
boolean | string
reportAny
boolean | string
reportExplicitAny
boolean | string
reportIgnoreCommentWithoutRule
boolean | string
reportPrivateLocalImportUsage
boolean | string
reportImplicitRelativeImport
boolean | string
reportInvalidCast
boolean | string
reportUnsafeMultipleInheritance
boolean | string
reportUnusedParameter
boolean | string
reportImplicitAbstractClass
boolean | string
reportUnannotatedClassAttribute
boolean | string
reportIncompatibleUnannotatedOverride
boolean | string
reportInvalidAbstractMethod
boolean | string
reportSelfClsDefault
boolean | string
reportEmptyAbstractUsage
boolean | string