From 036e746b735e4b6515dfa6e9d6effe4a40b96dd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 04:34:35 +0000 Subject: [PATCH 1/2] chore(deps): bump pyright from 1.1.366 to 1.1.367 in /language-server Bumps [pyright](https://github.com/Microsoft/pyright/tree/HEAD/packages/pyright) from 1.1.366 to 1.1.367. - [Release notes](https://github.com/Microsoft/pyright/releases) - [Commits](https://github.com/Microsoft/pyright/commits/1.1.367/packages/pyright) --- updated-dependencies: - dependency-name: pyright dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- language-server/package-lock.json | 14 +++++++------- language-server/package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/language-server/package-lock.json b/language-server/package-lock.json index b0e9178..0196dd1 100644 --- a/language-server/package-lock.json +++ b/language-server/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "pyright": "^1.1.366" + "pyright": "^1.1.367" } }, "node_modules/fsevents": { @@ -22,9 +22,9 @@ } }, "node_modules/pyright": { - "version": "1.1.366", - "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.366.tgz", - "integrity": "sha512-Kl40HoSimFGZPHuKBA9hgowwg4St7dYhG6r3fS9juIZ2TySuDWs9BzNqfK2MrJf7H6w2nNjcEJH+y2lzHWDImw==", + "version": "1.1.367", + "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.367.tgz", + "integrity": "sha512-qw6PmU59P4OAonqPEsaJ4CYHIpkr3eBsyXRpVJnmBoXldEZEoM3qdXIeo9BlsPFE+hzdNKNgBjSNAXdiOixEuw==", "bin": { "pyright": "index.js", "pyright-langserver": "langserver.index.js" @@ -45,9 +45,9 @@ "optional": true }, "pyright": { - "version": "1.1.366", - "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.366.tgz", - "integrity": "sha512-Kl40HoSimFGZPHuKBA9hgowwg4St7dYhG6r3fS9juIZ2TySuDWs9BzNqfK2MrJf7H6w2nNjcEJH+y2lzHWDImw==", + "version": "1.1.367", + "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.367.tgz", + "integrity": "sha512-qw6PmU59P4OAonqPEsaJ4CYHIpkr3eBsyXRpVJnmBoXldEZEoM3qdXIeo9BlsPFE+hzdNKNgBjSNAXdiOixEuw==", "requires": { "fsevents": "~2.3.3" } diff --git a/language-server/package.json b/language-server/package.json index 5585bbe..ad319d4 100644 --- a/language-server/package.json +++ b/language-server/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "pyright": "^1.1.366" + "pyright": "^1.1.367" } } From a8b97ad20b0e1d79a92baf3737600d7a5ab25572 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 12 Jun 2024 06:24:38 +0000 Subject: [PATCH 2/2] [automated commit] update schema --- sublime-package.json | 1136 ++++++++++++++++++++++++++++-------------- 1 file changed, 774 insertions(+), 362 deletions(-) diff --git a/sublime-package.json b/sublime-package.json index cb923a3..ed7a433 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -21,42 +21,6 @@ "settings": { "additionalProperties": false, "properties": { - "statusText": { - "default": "{% if venv %}venv: {{ venv.venv_prompt }}; py: {{ venv.python_version }}; by: {{ venv.finder_name }}{% endif %}", - "markdownDescription": "The (Jinja2) template of the status bar text which is inside the parentheses `(...)`.", - "type": "string" - }, - "venvStrategies": { - "default": [], - "description": "The strategies used to find a virtual environment in order.", - "items": { - "enum": [ - "any_subdirectory", - "env_var_conda_prefix", - "env_var_virtual_env", - "hatch", - "local_dot_venv", - "pdm", - "pipenv", - "poetry", - "pyenv", - "rye" - ], - "markdownEnumDescriptions": [ - "Finds the virtual environment with any subdirectory.", - "Finds the virtual environment using the `CONDA_PREFIX` environment variable.", - "Finds the virtual environment using the `VIRTUAL_ENV` environment variable.", - "Finds the virtual environment using `hatch`.", - "Finds the virtual environment `.venv` or `venv` directory.", - "Finds the virtual environment using `pdm`.", - "Finds the virtual environment using `pipenv`.", - "Finds the virtual environment using `poetry`.", - "Finds the virtual environment using `pyenv`.", - "Finds the virtual environment using `rye`." - ] - }, - "type": "array" - }, "pyright.dev_environment": { "default": "", "description": "Enables the pre-defined environment setup for specific developing needs.", @@ -109,280 +73,280 @@ "description": "Allows a user to override the severity levels for individual diagnostics.", "properties": { "analyzeUnannotatedFunctions": { - "$ref": "sublime://pyrightconfig#/properties/analyzeUnannotatedFunctions" + "$ref": "sublime://pyrightconfig#/definitions/analyzeUnannotatedFunctions" }, "deprecateTypingAliases": { - "$ref": "sublime://pyrightconfig#/properties/deprecateTypingAliases" + "$ref": "sublime://pyrightconfig#/definitions/deprecateTypingAliases" }, "disableBytesTypePromotions": { - "$ref": "sublime://pyrightconfig#/properties/disableBytesTypePromotions" + "$ref": "sublime://pyrightconfig#/definitions/disableBytesTypePromotions" }, "enableExperimentalFeatures": { - "$ref": "sublime://pyrightconfig#/properties/enableExperimentalFeatures" + "$ref": "sublime://pyrightconfig#/definitions/enableExperimentalFeatures" }, "enableTypeIgnoreComments": { - "$ref": "sublime://pyrightconfig#/properties/enableTypeIgnoreComments" + "$ref": "sublime://pyrightconfig#/definitions/enableTypeIgnoreComments" }, "reportAbstractUsage": { - "$ref": "sublime://pyrightconfig#/properties/reportAbstractUsage" + "$ref": "sublime://pyrightconfig#/definitions/reportAbstractUsage" }, "reportArgumentType": { - "$ref": "sublime://pyrightconfig#/properties/reportArgumentType" + "$ref": "sublime://pyrightconfig#/definitions/reportArgumentType" }, "reportAssertAlwaysTrue": { - "$ref": "sublime://pyrightconfig#/properties/reportAssertAlwaysTrue" + "$ref": "sublime://pyrightconfig#/definitions/reportAssertAlwaysTrue" }, "reportAssertTypeFailure": { - "$ref": "sublime://pyrightconfig#/properties/reportAssertTypeFailure" + "$ref": "sublime://pyrightconfig#/definitions/reportAssertTypeFailure" }, "reportAssignmentType": { - "$ref": "sublime://pyrightconfig#/properties/reportAssignmentType" + "$ref": "sublime://pyrightconfig#/definitions/reportAssignmentType" }, "reportAttributeAccessIssue": { - "$ref": "sublime://pyrightconfig#/properties/reportAttributeAccessIssue" + "$ref": "sublime://pyrightconfig#/definitions/reportAttributeAccessIssue" }, "reportCallInDefaultInitializer": { - "$ref": "sublime://pyrightconfig#/properties/reportCallInDefaultInitializer" + "$ref": "sublime://pyrightconfig#/definitions/reportCallInDefaultInitializer" }, "reportCallIssue": { - "$ref": "sublime://pyrightconfig#/properties/reportCallIssue" + "$ref": "sublime://pyrightconfig#/definitions/reportCallIssue" }, "reportConstantRedefinition": { - "$ref": "sublime://pyrightconfig#/properties/reportConstantRedefinition" + "$ref": "sublime://pyrightconfig#/definitions/reportConstantRedefinition" }, "reportDeprecated": { - "$ref": "sublime://pyrightconfig#/properties/reportDeprecated" + "$ref": "sublime://pyrightconfig#/definitions/reportDeprecated" }, "reportDuplicateImport": { - "$ref": "sublime://pyrightconfig#/properties/reportDuplicateImport" + "$ref": "sublime://pyrightconfig#/definitions/reportDuplicateImport" }, "reportFunctionMemberAccess": { - "$ref": "sublime://pyrightconfig#/properties/reportFunctionMemberAccess" + "$ref": "sublime://pyrightconfig#/definitions/reportFunctionMemberAccess" }, "reportGeneralTypeIssues": { - "$ref": "sublime://pyrightconfig#/properties/reportGeneralTypeIssues" + "$ref": "sublime://pyrightconfig#/definitions/reportGeneralTypeIssues" }, "reportImplicitOverride": { - "$ref": "sublime://pyrightconfig#/properties/reportImplicitOverride" + "$ref": "sublime://pyrightconfig#/definitions/reportImplicitOverride" }, "reportImplicitStringConcatenation": { - "$ref": "sublime://pyrightconfig#/properties/reportImplicitStringConcatenation" + "$ref": "sublime://pyrightconfig#/definitions/reportImplicitStringConcatenation" }, "reportImportCycles": { - "$ref": "sublime://pyrightconfig#/properties/reportImportCycles" + "$ref": "sublime://pyrightconfig#/definitions/reportImportCycles" }, "reportIncompatibleMethodOverride": { - "$ref": "sublime://pyrightconfig#/properties/reportIncompatibleMethodOverride" + "$ref": "sublime://pyrightconfig#/definitions/reportIncompatibleMethodOverride" }, "reportIncompatibleVariableOverride": { - "$ref": "sublime://pyrightconfig#/properties/reportIncompatibleVariableOverride" + "$ref": "sublime://pyrightconfig#/definitions/reportIncompatibleVariableOverride" }, "reportIncompleteStub": { - "$ref": "sublime://pyrightconfig#/properties/reportIncompleteStub" + "$ref": "sublime://pyrightconfig#/definitions/reportIncompleteStub" }, "reportInconsistentConstructor": { - "$ref": "sublime://pyrightconfig#/properties/reportInconsistentConstructor" + "$ref": "sublime://pyrightconfig#/definitions/reportInconsistentConstructor" }, "reportInconsistentOverload": { - "$ref": "sublime://pyrightconfig#/properties/reportInconsistentOverload" + "$ref": "sublime://pyrightconfig#/definitions/reportInconsistentOverload" }, "reportIndexIssue": { - "$ref": "sublime://pyrightconfig#/properties/reportIndexIssue" + "$ref": "sublime://pyrightconfig#/definitions/reportIndexIssue" }, "reportInvalidStringEscapeSequence": { - "$ref": "sublime://pyrightconfig#/properties/reportInvalidStringEscapeSequence" + "$ref": "sublime://pyrightconfig#/definitions/reportInvalidStringEscapeSequence" }, "reportInvalidStubStatement": { - "$ref": "sublime://pyrightconfig#/properties/reportInvalidStubStatement" + "$ref": "sublime://pyrightconfig#/definitions/reportInvalidStubStatement" }, "reportInvalidTypeArguments": { - "$ref": "sublime://pyrightconfig#/properties/reportInvalidTypeArguments" + "$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeArguments" }, "reportInvalidTypeForm": { - "$ref": "sublime://pyrightconfig#/properties/reportInvalidTypeForm" + "$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeForm" }, "reportInvalidTypeVarUse": { - "$ref": "sublime://pyrightconfig#/properties/reportInvalidTypeVarUse" + "$ref": "sublime://pyrightconfig#/definitions/reportInvalidTypeVarUse" }, "reportMatchNotExhaustive": { - "$ref": "sublime://pyrightconfig#/properties/reportMatchNotExhaustive" + "$ref": "sublime://pyrightconfig#/definitions/reportMatchNotExhaustive" }, "reportMissingImports": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingImports" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingImports" }, "reportMissingModuleSource": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingModuleSource" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingModuleSource" }, "reportMissingParameterType": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingParameterType" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingParameterType" }, "reportMissingSuperCall": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingSuperCall" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingSuperCall" }, "reportMissingTypeArgument": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingTypeArgument" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingTypeArgument" }, "reportMissingTypeStubs": { - "$ref": "sublime://pyrightconfig#/properties/reportMissingTypeStubs" + "$ref": "sublime://pyrightconfig#/definitions/reportMissingTypeStubs" }, "reportNoOverloadImplementation": { - "$ref": "sublime://pyrightconfig#/properties/reportNoOverloadImplementation" + "$ref": "sublime://pyrightconfig#/definitions/reportNoOverloadImplementation" }, "reportOperatorIssue": { - "$ref": "sublime://pyrightconfig#/properties/reportOperatorIssue" + "$ref": "sublime://pyrightconfig#/definitions/reportOperatorIssue" }, "reportOptionalCall": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalCall" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalCall" }, "reportOptionalContextManager": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalContextManager" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalContextManager" }, "reportOptionalIterable": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalIterable" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalIterable" }, "reportOptionalMemberAccess": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalMemberAccess" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalMemberAccess" }, "reportOptionalOperand": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalOperand" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalOperand" }, "reportOptionalSubscript": { - "$ref": "sublime://pyrightconfig#/properties/reportOptionalSubscript" + "$ref": "sublime://pyrightconfig#/definitions/reportOptionalSubscript" }, "reportOverlappingOverload": { - "$ref": "sublime://pyrightconfig#/properties/reportOverlappingOverload" + "$ref": "sublime://pyrightconfig#/definitions/reportOverlappingOverload" }, "reportPossiblyUnboundVariable": { - "$ref": "sublime://pyrightconfig#/properties/reportPossiblyUnboundVariable" + "$ref": "sublime://pyrightconfig#/definitions/reportPossiblyUnboundVariable" }, "reportPrivateImportUsage": { - "$ref": "sublime://pyrightconfig#/properties/reportPrivateImportUsage" + "$ref": "sublime://pyrightconfig#/definitions/reportPrivateImportUsage" }, "reportPrivateUsage": { - "$ref": "sublime://pyrightconfig#/properties/reportPrivateUsage" + "$ref": "sublime://pyrightconfig#/definitions/reportPrivateUsage" }, "reportPropertyTypeMismatch": { - "$ref": "sublime://pyrightconfig#/properties/reportPropertyTypeMismatch" + "$ref": "sublime://pyrightconfig#/definitions/reportPropertyTypeMismatch" }, "reportRedeclaration": { - "$ref": "sublime://pyrightconfig#/properties/reportRedeclaration" + "$ref": "sublime://pyrightconfig#/definitions/reportRedeclaration" }, "reportReturnType": { - "$ref": "sublime://pyrightconfig#/properties/reportReturnType" + "$ref": "sublime://pyrightconfig#/definitions/reportReturnType" }, "reportSelfClsParameterName": { - "$ref": "sublime://pyrightconfig#/properties/reportSelfClsParameterName" + "$ref": "sublime://pyrightconfig#/definitions/reportSelfClsParameterName" }, "reportShadowedImports": { - "$ref": "sublime://pyrightconfig#/properties/reportShadowedImports" + "$ref": "sublime://pyrightconfig#/definitions/reportShadowedImports" }, "reportTypeCommentUsage": { - "$ref": "sublime://pyrightconfig#/properties/reportTypeCommentUsage" + "$ref": "sublime://pyrightconfig#/definitions/reportTypeCommentUsage" }, "reportTypedDictNotRequiredAccess": { - "$ref": "sublime://pyrightconfig#/properties/reportTypedDictNotRequiredAccess" + "$ref": "sublime://pyrightconfig#/definitions/reportTypedDictNotRequiredAccess" }, "reportUnboundVariable": { - "$ref": "sublime://pyrightconfig#/properties/reportUnboundVariable" + "$ref": "sublime://pyrightconfig#/definitions/reportUnboundVariable" }, "reportUndefinedVariable": { - "$ref": "sublime://pyrightconfig#/properties/reportUndefinedVariable" + "$ref": "sublime://pyrightconfig#/definitions/reportUndefinedVariable" }, "reportUnhashable": { - "$ref": "sublime://pyrightconfig#/properties/reportUnhashable" + "$ref": "sublime://pyrightconfig#/definitions/reportUnhashable" }, "reportUninitializedInstanceVariable": { - "$ref": "sublime://pyrightconfig#/properties/reportUninitializedInstanceVariable" + "$ref": "sublime://pyrightconfig#/definitions/reportUninitializedInstanceVariable" }, "reportUnknownArgumentType": { - "$ref": "sublime://pyrightconfig#/properties/reportUnknownArgumentType" + "$ref": "sublime://pyrightconfig#/definitions/reportUnknownArgumentType" }, "reportUnknownLambdaType": { - "$ref": "sublime://pyrightconfig#/properties/reportUnknownLambdaType" + "$ref": "sublime://pyrightconfig#/definitions/reportUnknownLambdaType" }, "reportUnknownMemberType": { - "$ref": "sublime://pyrightconfig#/properties/reportUnknownMemberType" + "$ref": "sublime://pyrightconfig#/definitions/reportUnknownMemberType" }, "reportUnknownParameterType": { - "$ref": "sublime://pyrightconfig#/properties/reportUnknownParameterType" + "$ref": "sublime://pyrightconfig#/definitions/reportUnknownParameterType" }, "reportUnknownVariableType": { - "$ref": "sublime://pyrightconfig#/properties/reportUnknownVariableType" + "$ref": "sublime://pyrightconfig#/definitions/reportUnknownVariableType" }, "reportUnnecessaryCast": { - "$ref": "sublime://pyrightconfig#/properties/reportUnnecessaryCast" + "$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryCast" }, "reportUnnecessaryComparison": { - "$ref": "sublime://pyrightconfig#/properties/reportUnnecessaryComparison" + "$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryComparison" }, "reportUnnecessaryContains": { - "$ref": "sublime://pyrightconfig#/properties/reportUnnecessaryContains" + "$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryContains" }, "reportUnnecessaryIsInstance": { - "$ref": "sublime://pyrightconfig#/properties/reportUnnecessaryIsInstance" + "$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryIsInstance" }, "reportUnnecessaryTypeIgnoreComment": { - "$ref": "sublime://pyrightconfig#/properties/reportUnnecessaryTypeIgnoreComment" + "$ref": "sublime://pyrightconfig#/definitions/reportUnnecessaryTypeIgnoreComment" }, "reportUnsupportedDunderAll": { - "$ref": "sublime://pyrightconfig#/properties/reportUnsupportedDunderAll" + "$ref": "sublime://pyrightconfig#/definitions/reportUnsupportedDunderAll" }, "reportUntypedBaseClass": { - "$ref": "sublime://pyrightconfig#/properties/reportUntypedBaseClass" + "$ref": "sublime://pyrightconfig#/definitions/reportUntypedBaseClass" }, "reportUntypedClassDecorator": { - "$ref": "sublime://pyrightconfig#/properties/reportUntypedClassDecorator" + "$ref": "sublime://pyrightconfig#/definitions/reportUntypedClassDecorator" }, "reportUntypedFunctionDecorator": { - "$ref": "sublime://pyrightconfig#/properties/reportUntypedFunctionDecorator" + "$ref": "sublime://pyrightconfig#/definitions/reportUntypedFunctionDecorator" }, "reportUntypedNamedTuple": { - "$ref": "sublime://pyrightconfig#/properties/reportUntypedNamedTuple" + "$ref": "sublime://pyrightconfig#/definitions/reportUntypedNamedTuple" }, "reportUnusedCallResult": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedCallResult" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedCallResult" }, "reportUnusedClass": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedClass" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedClass" }, "reportUnusedCoroutine": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedCoroutine" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedCoroutine" }, "reportUnusedExcept": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedExcept" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedExcept" }, "reportUnusedExpression": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedExpression" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedExpression" }, "reportUnusedFunction": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedFunction" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedFunction" }, "reportUnusedImport": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedImport" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedImport" }, "reportUnusedVariable": { - "$ref": "sublime://pyrightconfig#/properties/reportUnusedVariable" + "$ref": "sublime://pyrightconfig#/definitions/reportUnusedVariable" }, "reportWildcardImportFromLibrary": { - "$ref": "sublime://pyrightconfig#/properties/reportWildcardImportFromLibrary" + "$ref": "sublime://pyrightconfig#/definitions/reportWildcardImportFromLibrary" }, "strictDictionaryInference": { - "$ref": "sublime://pyrightconfig#/properties/strictDictionaryInference" + "$ref": "sublime://pyrightconfig#/definitions/strictDictionaryInference" }, "strictListInference": { - "$ref": "sublime://pyrightconfig#/properties/strictListInference" + "$ref": "sublime://pyrightconfig#/definitions/strictListInference" }, "strictParameterNoneValue": { - "$ref": "sublime://pyrightconfig#/properties/strictParameterNoneValue" + "$ref": "sublime://pyrightconfig#/definitions/strictParameterNoneValue" }, "strictSetInference": { - "$ref": "sublime://pyrightconfig#/properties/strictSetInference" + "$ref": "sublime://pyrightconfig#/definitions/strictSetInference" } }, "type": "object" }, "python.analysis.extraPaths": { - "$ref": "sublime://pyrightconfig#/properties/extraPaths" + "$ref": "sublime://pyrightconfig#/definitions/extraPaths" }, "python.analysis.logLevel": { "default": "Information", @@ -396,10 +360,10 @@ "type": "string" }, "python.analysis.stubPath": { - "$ref": "sublime://pyrightconfig#/properties/stubPath" + "$ref": "sublime://pyrightconfig#/definitions/stubPath" }, "python.analysis.typeCheckingMode": { - "$ref": "sublime://pyrightconfig#/properties/typeCheckingMode" + "$ref": "sublime://pyrightconfig#/definitions/typeCheckingMode" }, "python.analysis.typeshedPaths": { "default": [], @@ -410,7 +374,7 @@ "type": "array" }, "python.analysis.useLibraryCodeForTypes": { - "$ref": "sublime://pyrightconfig#/properties/useLibraryCodeForTypes" + "$ref": "sublime://pyrightconfig#/definitions/useLibraryCodeForTypes" }, "python.pythonPath": { "default": "python", @@ -418,7 +382,43 @@ "type": "string" }, "python.venvPath": { - "$ref": "sublime://pyrightconfig#/properties/venvPath" + "$ref": "sublime://pyrightconfig#/definitions/venvPath" + }, + "statusText": { + "default": "{% if venv %}venv: {{ venv.venv_prompt }}; py: {{ venv.python_version }}; by: {{ venv.finder_name }}{% endif %}", + "markdownDescription": "The (Jinja2) template of the status bar text which is inside the parentheses `(...)`.", + "type": "string" + }, + "venvStrategies": { + "default": [], + "description": "The strategies used to find a virtual environment in order.", + "items": { + "enum": [ + "any_subdirectory", + "env_var_conda_prefix", + "env_var_virtual_env", + "hatch", + "local_dot_venv", + "pdm", + "pipenv", + "poetry", + "pyenv", + "rye" + ], + "markdownEnumDescriptions": [ + "Finds the virtual environment with any subdirectory.", + "Finds the virtual environment using the `CONDA_PREFIX` environment variable.", + "Finds the virtual environment using the `VIRTUAL_ENV` environment variable.", + "Finds the virtual environment using `hatch`.", + "Finds the virtual environment `.venv` or `venv` directory.", + "Finds the virtual environment using `pdm`.", + "Finds the virtual environment using `pipenv`.", + "Finds the virtual environment using `poetry`.", + "Finds the virtual environment using `pyenv`.", + "Finds the virtual environment using `rye`." + ] + }, + "type": "array" } } } @@ -437,6 +437,16 @@ "allowComments": true, "allowTrailingCommas": true, "definitions": { + "analyzeUnannotatedFunctions": { + "default": true, + "title": "Analyze and report diagnostics for functions that have no annotations", + "type": "boolean" + }, + "deprecateTypingAliases": { + "default": false, + "title": "Treat typing-specific aliases to standard types as deprecated", + "type": "boolean" + }, "diagnostic": { "anyOf": [ { @@ -452,128 +462,24 @@ "type": "string" } ] - } - }, - "description": "Pyright Configuration Schema", - "properties": { - "analyzeUnannotatedFunctions": { - "$id": "#/properties/analyzeUnannotatedFunctions", - "default": true, - "title": "Analyze and report diagnostics for functions that have no annotations", - "type": "boolean" - }, - "defineConstant": { - "$id": "#/properties/defineConstant", - "additionalProperties": { - "title": "Value of constant (boolean or string)", - "type": [ - "string", - "boolean" - ] - }, - "properties": {}, - "title": "Identifiers that should be treated as constants", - "type": "object" - }, - "deprecateTypingAliases": { - "$id": "#/properties/deprecateTypingAliases", - "default": false, - "title": "Treat typing-specific aliases to standard types as deprecated", - "type": "boolean" }, "disableBytesTypePromotions": { - "$id": "#/properties/disableBytesTypePromotions", "default": false, "title": "Do not treat `bytearray` and `memoryview` as implicit subtypes of `bytes`", "type": "boolean" }, "enableExperimentalFeatures": { - "$id": "#/properties/enableExperimentalFeatures", "default": false, "title": "Enable the use of experimental features that are not part of the Python typing spec", "type": "boolean" }, "enableTypeIgnoreComments": { - "$id": "#/properties/enableTypeIgnoreComments", "default": true, "title": "Allow \"# type: ignore\" comments", "type": "boolean" }, - "exclude": { - "$id": "#/properties/exclude", - "items": { - "$id": "#/properties/exclude/items", - "pattern": "^(.*)$", - "title": "File or directory to exclude from type analysis", - "type": "string" - }, - "title": "Files and directories excluded from type analysis", - "type": "array" - }, - "executionEnvironments": { - "$id": "#/properties/executionEnvironments", - "items": { - "$id": "#/properties/executionEnvironments/items", - "properties": { - "extraPaths": { - "$id": "#/properties/executionEnvironments/items/properties/extraPaths", - "items": { - "$id": "#/properties/executionEnvironments/items/properties/extraPaths/items", - "default": "", - "pattern": "^(.*)$", - "title": "Additional import search resolution path", - "type": "string" - }, - "title": "Additional import search resolution paths", - "type": "array" - }, - "pythonPlatform": { - "$id": "#/properties/executionEnvironments/items/properties/pythonPlatform", - "default": "", - "examples": [ - "Linux" - ], - "pattern": "^(Linux|Windows|Darwin|All)$", - "title": "Python platform to assume during type analysis", - "type": "string" - }, - "pythonVersion": { - "$id": "#/properties/executionEnvironments/items/properties/pythonVersion", - "default": "", - "examples": [ - "3.7" - ], - "pattern": "^3\\.[0-9]+$", - "title": "Python version to assume during type analysis", - "type": "string" - }, - "root": { - "$id": "#/properties/executionEnvironments/items/properties/root", - "default": "", - "pattern": "^(.*)$", - "title": "Path to code subdirectory to which these settings apply", - "type": "string" - } - }, - "required": [ - "root" - ], - "title": "Analysis settings to use for specified subdirectories of code", - "type": "object" - }, - "title": "Analysis settings to use for specified subdirectories of code", - "type": "array" - }, - "extends": { - "$id": "#/properties/extends", - "pattern": "^(.*)$", - "title": "Path to configuration file that this configuration extends", - "type": "string" - }, "extraPaths": { - "$id": "#/properties/extraPaths", "items": { - "$id": "#/properties/extraPaths/items", "default": "", "pattern": "^(.*)$", "title": "Additional import search resolution path", @@ -582,30 +488,7 @@ "title": "Additional import search resolution paths", "type": "array" }, - "ignore": { - "$id": "#/properties/ignore", - "items": { - "$id": "#/properties/ignore/items", - "pattern": "^(.*)$", - "title": "File or directory where diagnostics should be suppressed", - "type": "string" - }, - "title": "Files and directories whose diagnostics are suppressed", - "type": "array" - }, - "include": { - "$id": "#/properties/include", - "items": { - "$id": "#/properties/include/items", - "pattern": "^(.*)$", - "title": "File or directory to include in type analysis", - "type": "string" - }, - "title": "Files and directories included in type analysis", - "type": "array" - }, "pythonPlatform": { - "$id": "#/properties/pythonPlatform", "default": "", "examples": [ "Linux" @@ -615,7 +498,6 @@ "type": "string" }, "pythonVersion": { - "$id": "#/properties/pythonVersion", "default": "", "examples": [ "3.7" @@ -625,528 +507,1064 @@ "type": "string" }, "reportAbstractUsage": { - "$id": "#/properties/reportAbstractUsage", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempted instantiation of abstract class" }, "reportArgumentType": { - "$id": "#/properties/reportArgumentType", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of incompatible argument type" }, "reportAssertAlwaysTrue": { - "$id": "#/properties/reportAssertAlwaysTrue", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting assert expressions that will always evaluate to true" }, "reportAssertTypeFailure": { - "$id": "#/properties/reportAssertTypeFailure", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of type mismatch detected by typing.assert_type call" }, "reportAssignmentType": { - "$id": "#/properties/reportAssignmentType", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of type incompatibilities for assignments" }, "reportAttributeAccessIssue": { - "$id": "#/properties/reportAttributeAccessIssue", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of issues related to attribute accesses" }, "reportCallInDefaultInitializer": { - "$id": "#/properties/reportCallInDefaultInitializer", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting usage of function calls within a default value initializer expression" }, "reportCallIssue": { - "$id": "#/properties/reportCallIssue", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of issues related to call expressions and arguments" }, "reportConstantRedefinition": { - "$id": "#/properties/reportConstantRedefinition", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of attempts to redefine variables that are in all-caps" }, "reportDeprecated": { - "$id": "#/properties/reportDeprecated", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of use of deprecated class or function" }, "reportDuplicateImport": { - "$id": "#/properties/reportDuplicateImport", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of symbols or modules that are imported more than once" }, "reportFunctionMemberAccess": { - "$id": "#/properties/reportFunctionMemberAccess", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of member accesses on function objects" }, "reportGeneralTypeIssues": { - "$id": "#/properties/reportGeneralTypeIssues", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of general type issues" }, "reportImplicitOverride": { - "$id": "#/properties/reportImplicitOverride", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting overridden methods that are missing an `@override` decorator" }, "reportImplicitStringConcatenation": { - "$id": "#/properties/reportImplicitStringConcatenation", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting usage of implicit concatenation of string literals" }, "reportImportCycles": { - "$id": "#/properties/reportImportCycles", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of module imports that create cycles in import graph" }, "reportIncompatibleMethodOverride": { - "$id": "#/properties/reportIncompatibleMethodOverride", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of method overrides in subclasses that redefine the method in an incompatible way" }, "reportIncompatibleVariableOverride": { - "$id": "#/properties/reportIncompatibleVariableOverride", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of overrides in subclasses that redefine a variable in an incompatible way" }, "reportIncompleteStub": { - "$id": "#/properties/reportIncompleteStub", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of incomplete type stubs that declare a module-level __getattr__ function" }, "reportInconsistentConstructor": { - "$id": "#/properties/reportInconsistentConstructor", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of __init__ and __new__ methods whose signatures are inconsistent" }, "reportInconsistentOverload": { - "$id": "#/properties/reportInconsistentOverload", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of inconsistencies between function overload signatures" }, "reportIndexIssue": { - "$id": "#/properties/reportIndexIssue", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of issues related to index operations and expressions" }, "reportInvalidStringEscapeSequence": { - "$id": "#/properties/reportInvalidStringEscapeSequence", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting of invalid escape sequences used within string literals" }, "reportInvalidStubStatement": { - "$id": "#/properties/reportInvalidStubStatement", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of type stub statements that do not conform to PEP 484" }, "reportInvalidTypeArguments": { - "$id": "#/properties/reportInvalidTypeArguments", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of invalid type argument usage" }, "reportInvalidTypeForm": { - "$id": "#/properties/reportInvalidTypeForm", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of type expressions that use an invalid form" }, "reportInvalidTypeVarUse": { - "$id": "#/properties/reportInvalidTypeVarUse", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting improper use of type variables within function signatures" }, "reportMatchNotExhaustive": { - "$id": "#/properties/reportMatchNotExhaustive", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of 'match' statements that do not exhaustively match all possible values" }, "reportMissingImports": { - "$id": "#/properties/reportMissingImports", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of imports that cannot be resolved" }, "reportMissingModuleSource": { - "$id": "#/properties/reportMissingModuleSource", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting of imports that cannot be resolved to source files" }, "reportMissingParameterType": { - "$id": "#/properties/reportMissingParameterType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting input parameters that are missing a type annotation" }, "reportMissingSuperCall": { - "$id": "#/properties/reportMissingSuperCall", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of missing call to parent class for inherited `__init__` methods" }, "reportMissingTypeArgument": { - "$id": "#/properties/reportMissingTypeArgument", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting generic class reference with missing type arguments" }, "reportMissingTypeStubs": { - "$id": "#/properties/reportMissingTypeStubs", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of imports that cannot be resolved to type stub files" }, "reportNoOverloadImplementation": { - "$id": "#/properties/reportNoOverloadImplementation", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of an overloaded function or method with a missing implementation" }, "reportOperatorIssue": { - "$id": "#/properties/reportOperatorIssue", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of diagnostics related to unary and binary operators" }, "reportOptionalCall": { - "$id": "#/properties/reportOptionalCall", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to call a variable with Optional type" }, "reportOptionalContextManager": { - "$id": "#/properties/reportOptionalContextManager", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use an Optional type as a parameter to a with statement" }, "reportOptionalIterable": { - "$id": "#/properties/reportOptionalIterable", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use an Optional type as an iterable value" }, "reportOptionalMemberAccess": { - "$id": "#/properties/reportOptionalMemberAccess", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to access a member of a variable with Optional type" }, "reportOptionalOperand": { - "$id": "#/properties/reportOptionalOperand", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use an Optional type as an operand for a binary or unary operator" }, "reportOptionalSubscript": { - "$id": "#/properties/reportOptionalSubscript", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to subscript (index) a variable with Optional type" }, "reportOverlappingOverload": { - "$id": "#/properties/reportOverlappingOverload", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of function overloads that overlap in signature and obscure each other or do not agree on return type" }, "reportPossiblyUnboundVariable": { - "$id": "#/properties/reportPossiblyUnboundVariable", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use variable that is possibly unbound on some code paths" }, "reportPrivateImportUsage": { - "$id": "#/properties/reportPrivateImportUsage", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of improper usage of symbol imported from a \"py.typed\" module that is not re-exported from that module" }, "reportPrivateUsage": { - "$id": "#/properties/reportPrivateUsage", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of private variables and functions used outside of the owning class or module and usage of protected members outside of subclasses" }, "reportPropertyTypeMismatch": { - "$id": "#/properties/reportPropertyTypeMismatch", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of property getter/setter type mismatches" }, "reportRedeclaration": { - "$id": "#/properties/reportRedeclaration", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to declare the type of a symbol multiple times" }, "reportReturnType": { - "$id": "#/properties/reportReturnType", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of function return type incompatibility" }, "reportSelfClsParameterName": { - "$id": "#/properties/reportSelfClsParameterName", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting missing or misnamed self parameters" }, "reportShadowedImports": { - "$id": "#/properties/reportShadowedImports", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of shadowed imports of stdlib modules" }, "reportTypeCommentUsage": { - "$id": "#/properties/reportTypeCommentUsage", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of deprecated type comment usage" }, "reportTypedDictNotRequiredAccess": { - "$id": "#/properties/reportTypedDictNotRequiredAccess", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to access a non-required key in a TypedDict without a check for its presence" }, "reportUnboundVariable": { - "$id": "#/properties/reportUnboundVariable", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use an unbound variable" }, "reportUndefinedVariable": { - "$id": "#/properties/reportUndefinedVariable", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of attempts to use an undefined variable" }, "reportUnhashable": { - "$id": "#/properties/reportUnhashable", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of unhashable object in container that requires hashability" }, "reportUninitializedInstanceVariable": { - "$id": "#/properties/reportUninitializedInstanceVariable", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of instance variables that are not initialized in the constructor" }, "reportUnknownArgumentType": { - "$id": "#/properties/reportUnknownArgumentType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting argument expressions whose types are unknown" }, "reportUnknownLambdaType": { - "$id": "#/properties/reportUnknownLambdaType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting input and return parameters for lambdas whose types are unknown" }, "reportUnknownMemberType": { - "$id": "#/properties/reportUnknownMemberType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting class and instance variables whose types are unknown" }, "reportUnknownParameterType": { - "$id": "#/properties/reportUnknownParameterType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting input and return parameters whose types are unknown" }, "reportUnknownVariableType": { - "$id": "#/properties/reportUnknownVariableType", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting local variables whose types are unknown" }, "reportUnnecessaryCast": { - "$id": "#/properties/reportUnnecessaryCast", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting calls to 'cast' that are unnecessary" }, "reportUnnecessaryComparison": { - "$id": "#/properties/reportUnnecessaryComparison", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting the use of '==' or '!=' comparisons that are unnecessary" }, "reportUnnecessaryContains": { - "$id": "#/properties/reportUnnecessaryContains", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting the use of 'in' operations that are unnecessary" }, "reportUnnecessaryIsInstance": { - "$id": "#/properties/reportUnnecessaryIsInstance", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting calls to 'isinstance' or 'issubclass' where the result is statically determined to be always true" }, "reportUnnecessaryTypeIgnoreComment": { - "$id": "#/properties/reportUnnecessaryTypeIgnoreComment", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of '# type: ignore' comments that have no effect'" }, "reportUnsupportedDunderAll": { - "$id": "#/properties/reportUnsupportedDunderAll", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting of unsupported operations performed on __all__" }, "reportUntypedBaseClass": { - "$id": "#/properties/reportUntypedBaseClass", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of a base class of an unknown type, which obscures most type checking for the class" }, "reportUntypedClassDecorator": { - "$id": "#/properties/reportUntypedClassDecorator", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of class decorators without type annotations, which obscure class types" }, "reportUntypedFunctionDecorator": { - "$id": "#/properties/reportUntypedFunctionDecorator", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of function decorators without type annotations, which obscure function types" }, "reportUntypedNamedTuple": { - "$id": "#/properties/reportUntypedNamedTuple", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of a named tuple definition that does not contain type information" }, "reportUnusedCallResult": { - "$id": "#/properties/reportUnusedCallResult", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of call expressions whose results are not consumed" }, "reportUnusedClass": { - "$id": "#/properties/reportUnusedClass", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of private classes that are not accessed" }, "reportUnusedCoroutine": { - "$id": "#/properties/reportUnusedCoroutine", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of call expressions that returns Coroutine whose results are not consumed" }, "reportUnusedExcept": { - "$id": "#/properties/reportUnusedExcept", "$ref": "#/definitions/diagnostic", "default": "error", "title": "Controls reporting of unreachable except clauses" }, "reportUnusedExpression": { - "$id": "#/properties/reportUnusedExpression", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting of simple expressions whose value is not used in any way" }, "reportUnusedFunction": { - "$id": "#/properties/reportUnusedFunction", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of private functions or methods that are not accessed" }, "reportUnusedImport": { - "$id": "#/properties/reportUnusedImport", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of imported symbols that are not referenced within the source file" }, "reportUnusedVariable": { - "$id": "#/properties/reportUnusedVariable", "$ref": "#/definitions/diagnostic", "default": "none", "title": "Controls reporting of local variables that are not accessed" }, "reportWildcardImportFromLibrary": { - "$id": "#/properties/reportWildcardImportFromLibrary", "$ref": "#/definitions/diagnostic", "default": "warning", "title": "Controls reporting of wildcard import from external library" }, - "strict": { - "$id": "#/properties/strict", - "items": { - "$id": "#/properties/strict/items", - "pattern": "^(.*)$", - "title": "File or directory that should use 'strict' type checking rules", - "type": "string" - }, - "title": "Files and directories that should use 'strict' type checking rules", - "type": "array" - }, "strictDictionaryInference": { - "$id": "#/properties/strictDictionaryInference", "default": false, "title": "Infer strict types for dictionary expressions", "type": "boolean" }, "strictListInference": { - "$id": "#/properties/strictListInference", "default": false, "title": "Infer strict types for list expressions", "type": "boolean" }, "strictParameterNoneValue": { - "$id": "#/properties/strictParameterNoneValue", "default": true, "title": "Allow implicit Optional when default parameter value is None", "type": "boolean" }, "strictSetInference": { - "$id": "#/properties/strictSetInference", "default": false, "title": "Infer strict types for set expressions", "type": "boolean" + } + }, + "description": "Pyright Configuration Schema", + "properties": { + "analyzeUnannotatedFunctions": { + "$ref": "#/definitions/analyzeUnannotatedFunctions" + }, + "defineConstant": { + "additionalProperties": { + "title": "Value of constant (boolean or string)", + "type": [ + "string", + "boolean" + ] + }, + "properties": {}, + "title": "Identifiers that should be treated as constants", + "type": "object" + }, + "deprecateTypingAliases": { + "$ref": "#/definitions/deprecateTypingAliases" + }, + "disableBytesTypePromotions": { + "$ref": "#/definitions/disableBytesTypePromotions" + }, + "enableExperimentalFeatures": { + "$ref": "#/definitions/enableExperimentalFeatures" + }, + "enableTypeIgnoreComments": { + "$ref": "#/definitions/enableTypeIgnoreComments" + }, + "exclude": { + "items": { + "pattern": "^(.*)$", + "title": "File or directory to exclude from type analysis", + "type": "string" + }, + "title": "Files and directories excluded from type analysis", + "type": "array" + }, + "executionEnvironments": { + "items": { + "properties": { + "analyzeUnannotatedFunctions": { + "$ref": "#/definitions/analyzeUnannotatedFunctions" + }, + "deprecateTypingAliases": { + "$ref": "#/definitions/deprecateTypingAliases" + }, + "disableBytesTypePromotions": { + "$ref": "#/definitions/disableBytesTypePromotions" + }, + "enableExperimentalFeatures": { + "$ref": "#/definitions/enableExperimentalFeatures" + }, + "enableTypeIgnoreComments": { + "$ref": "#/definitions/enableTypeIgnoreComments" + }, + "extraPaths": { + "$ref": "#/definitions/extraPaths" + }, + "pythonPlatform": { + "$ref": "#/definitions/pythonPlatform" + }, + "pythonVersion": { + "$ref": "#/definitions/pythonVersion" + }, + "reportAbstractUsage": { + "$ref": "#/definitions/reportAbstractUsage" + }, + "reportArgumentType": { + "$ref": "#/definitions/reportArgumentType" + }, + "reportAssertAlwaysTrue": { + "$ref": "#/definitions/reportAssertAlwaysTrue" + }, + "reportAssertTypeFailure": { + "$ref": "#/definitions/reportAssertTypeFailure" + }, + "reportAssignmentType": { + "$ref": "#/definitions/reportAssignmentType" + }, + "reportAttributeAccessIssue": { + "$ref": "#/definitions/reportAttributeAccessIssue" + }, + "reportCallInDefaultInitializer": { + "$ref": "#/definitions/reportCallInDefaultInitializer" + }, + "reportCallIssue": { + "$ref": "#/definitions/reportCallIssue" + }, + "reportConstantRedefinition": { + "$ref": "#/definitions/reportConstantRedefinition" + }, + "reportDeprecated": { + "$ref": "#/definitions/reportDeprecated" + }, + "reportDuplicateImport": { + "$ref": "#/definitions/reportDuplicateImport" + }, + "reportFunctionMemberAccess": { + "$ref": "#/definitions/reportFunctionMemberAccess" + }, + "reportGeneralTypeIssues": { + "$ref": "#/definitions/reportGeneralTypeIssues" + }, + "reportImplicitOverride": { + "$ref": "#/definitions/reportImplicitOverride" + }, + "reportImplicitStringConcatenation": { + "$ref": "#/definitions/reportImplicitStringConcatenation" + }, + "reportImportCycles": { + "$ref": "#/definitions/reportImportCycles" + }, + "reportIncompatibleMethodOverride": { + "$ref": "#/definitions/reportIncompatibleMethodOverride" + }, + "reportIncompatibleVariableOverride": { + "$ref": "#/definitions/reportIncompatibleVariableOverride" + }, + "reportIncompleteStub": { + "$ref": "#/definitions/reportIncompleteStub" + }, + "reportInconsistentConstructor": { + "$ref": "#/definitions/reportInconsistentConstructor" + }, + "reportInconsistentOverload": { + "$ref": "#/definitions/reportInconsistentOverload" + }, + "reportIndexIssue": { + "$ref": "#/definitions/reportIndexIssue" + }, + "reportInvalidStringEscapeSequence": { + "$ref": "#/definitions/reportInvalidStringEscapeSequence" + }, + "reportInvalidStubStatement": { + "$ref": "#/definitions/reportInvalidStubStatement" + }, + "reportInvalidTypeArguments": { + "$ref": "#/definitions/reportInvalidTypeArguments" + }, + "reportInvalidTypeForm": { + "$ref": "#/definitions/reportInvalidTypeForm" + }, + "reportInvalidTypeVarUse": { + "$ref": "#/definitions/reportInvalidTypeVarUse" + }, + "reportMatchNotExhaustive": { + "$ref": "#/definitions/reportMatchNotExhaustive" + }, + "reportMissingImports": { + "$ref": "#/definitions/reportMissingImports" + }, + "reportMissingModuleSource": { + "$ref": "#/definitions/reportMissingModuleSource" + }, + "reportMissingParameterType": { + "$ref": "#/definitions/reportMissingParameterType" + }, + "reportMissingSuperCall": { + "$ref": "#/definitions/reportMissingSuperCall" + }, + "reportMissingTypeArgument": { + "$ref": "#/definitions/reportMissingTypeArgument" + }, + "reportMissingTypeStubs": { + "$ref": "#/definitions/reportMissingTypeStubs" + }, + "reportNoOverloadImplementation": { + "$ref": "#/definitions/reportNoOverloadImplementation" + }, + "reportOperatorIssue": { + "$ref": "#/definitions/reportOperatorIssue" + }, + "reportOptionalCall": { + "$ref": "#/definitions/reportOptionalCall" + }, + "reportOptionalContextManager": { + "$ref": "#/definitions/reportOptionalContextManager" + }, + "reportOptionalIterable": { + "$ref": "#/definitions/reportOptionalIterable" + }, + "reportOptionalMemberAccess": { + "$ref": "#/definitions/reportOptionalMemberAccess" + }, + "reportOptionalOperand": { + "$ref": "#/definitions/reportOptionalOperand" + }, + "reportOptionalSubscript": { + "$ref": "#/definitions/reportOptionalSubscript" + }, + "reportOverlappingOverload": { + "$ref": "#/definitions/reportOverlappingOverload" + }, + "reportPossiblyUnboundVariable": { + "$ref": "#/definitions/reportPossiblyUnboundVariable" + }, + "reportPrivateImportUsage": { + "$ref": "#/definitions/reportPrivateImportUsage" + }, + "reportPrivateUsage": { + "$ref": "#/definitions/reportPrivateUsage" + }, + "reportPropertyTypeMismatch": { + "$ref": "#/definitions/reportPropertyTypeMismatch" + }, + "reportRedeclaration": { + "$ref": "#/definitions/reportRedeclaration" + }, + "reportReturnType": { + "$ref": "#/definitions/reportReturnType" + }, + "reportSelfClsParameterName": { + "$ref": "#/definitions/reportSelfClsParameterName" + }, + "reportShadowedImports": { + "$ref": "#/definitions/reportShadowedImports" + }, + "reportTypeCommentUsage": { + "$ref": "#/definitions/reportTypeCommentUsage" + }, + "reportTypedDictNotRequiredAccess": { + "$ref": "#/definitions/reportTypedDictNotRequiredAccess" + }, + "reportUnboundVariable": { + "$ref": "#/definitions/reportUnboundVariable" + }, + "reportUndefinedVariable": { + "$ref": "#/definitions/reportUndefinedVariable" + }, + "reportUnhashable": { + "$ref": "#/definitions/reportUnhashable" + }, + "reportUninitializedInstanceVariable": { + "$ref": "#/definitions/reportUninitializedInstanceVariable" + }, + "reportUnknownArgumentType": { + "$ref": "#/definitions/reportUnknownArgumentType" + }, + "reportUnknownLambdaType": { + "$ref": "#/definitions/reportUnknownLambdaType" + }, + "reportUnknownMemberType": { + "$ref": "#/definitions/reportUnknownMemberType" + }, + "reportUnknownParameterType": { + "$ref": "#/definitions/reportUnknownParameterType" + }, + "reportUnknownVariableType": { + "$ref": "#/definitions/reportUnknownVariableType" + }, + "reportUnnecessaryCast": { + "$ref": "#/definitions/reportUnnecessaryCast" + }, + "reportUnnecessaryComparison": { + "$ref": "#/definitions/reportUnnecessaryComparison" + }, + "reportUnnecessaryContains": { + "$ref": "#/definitions/reportUnnecessaryContains" + }, + "reportUnnecessaryIsInstance": { + "$ref": "#/definitions/reportUnnecessaryIsInstance" + }, + "reportUnnecessaryTypeIgnoreComment": { + "$ref": "#/definitions/reportUnnecessaryTypeIgnoreComment" + }, + "reportUnsupportedDunderAll": { + "$ref": "#/definitions/reportUnsupportedDunderAll" + }, + "reportUntypedBaseClass": { + "$ref": "#/definitions/reportUntypedBaseClass" + }, + "reportUntypedClassDecorator": { + "$ref": "#/definitions/reportUntypedClassDecorator" + }, + "reportUntypedFunctionDecorator": { + "$ref": "#/definitions/reportUntypedFunctionDecorator" + }, + "reportUntypedNamedTuple": { + "$ref": "#/definitions/reportUntypedNamedTuple" + }, + "reportUnusedCallResult": { + "$ref": "#/definitions/reportUnusedCallResult" + }, + "reportUnusedClass": { + "$ref": "#/definitions/reportUnusedClass" + }, + "reportUnusedCoroutine": { + "$ref": "#/definitions/reportUnusedCoroutine" + }, + "reportUnusedExcept": { + "$ref": "#/definitions/reportUnusedExcept" + }, + "reportUnusedExpression": { + "$ref": "#/definitions/reportUnusedExpression" + }, + "reportUnusedFunction": { + "$ref": "#/definitions/reportUnusedFunction" + }, + "reportUnusedImport": { + "$ref": "#/definitions/reportUnusedImport" + }, + "reportUnusedVariable": { + "$ref": "#/definitions/reportUnusedVariable" + }, + "reportWildcardImportFromLibrary": { + "$ref": "#/definitions/reportWildcardImportFromLibrary" + }, + "root": { + "default": "", + "pattern": "^(.*)$", + "title": "Path to code subdirectory to which these settings apply", + "type": "string" + }, + "strictDictionaryInference": { + "$ref": "#/definitions/strictDictionaryInference" + }, + "strictListInference": { + "$ref": "#/definitions/strictListInference" + }, + "strictParameterNoneValue": { + "$ref": "#/definitions/strictParameterNoneValue" + }, + "strictSetInference": { + "$ref": "#/definitions/strictSetInference" + } + }, + "required": [ + "root" + ], + "title": "Analysis settings to use for specified subdirectories of code", + "type": "object" + }, + "title": "Analysis settings to use for specified subdirectories of code", + "type": "array" + }, + "extends": { + "pattern": "^(.*)$", + "title": "Path to configuration file that this configuration extends", + "type": "string" + }, + "extraPaths": { + "$ref": "#/definitions/extraPaths" + }, + "ignore": { + "items": { + "pattern": "^(.*)$", + "title": "File or directory where diagnostics should be suppressed", + "type": "string" + }, + "title": "Files and directories whose diagnostics are suppressed", + "type": "array" + }, + "include": { + "items": { + "pattern": "^(.*)$", + "title": "File or directory to include in type analysis", + "type": "string" + }, + "title": "Files and directories included in type analysis", + "type": "array" + }, + "pythonPlatform": { + "$ref": "#/definitions/pythonPlatform" + }, + "pythonVersion": { + "$ref": "#/definitions/pythonVersion" + }, + "reportAbstractUsage": { + "$ref": "#/definitions/reportAbstractUsage" + }, + "reportArgumentType": { + "$ref": "#/definitions/reportArgumentType" + }, + "reportAssertAlwaysTrue": { + "$ref": "#/definitions/reportAssertAlwaysTrue" + }, + "reportAssertTypeFailure": { + "$ref": "#/definitions/reportAssertTypeFailure" + }, + "reportAssignmentType": { + "$ref": "#/definitions/reportAssignmentType" + }, + "reportAttributeAccessIssue": { + "$ref": "#/definitions/reportAttributeAccessIssue" + }, + "reportCallInDefaultInitializer": { + "$ref": "#/definitions/reportCallInDefaultInitializer" + }, + "reportCallIssue": { + "$ref": "#/definitions/reportCallIssue" + }, + "reportConstantRedefinition": { + "$ref": "#/definitions/reportConstantRedefinition" + }, + "reportDeprecated": { + "$ref": "#/definitions/reportDeprecated" + }, + "reportDuplicateImport": { + "$ref": "#/definitions/reportDuplicateImport" + }, + "reportFunctionMemberAccess": { + "$ref": "#/definitions/reportFunctionMemberAccess" + }, + "reportGeneralTypeIssues": { + "$ref": "#/definitions/reportGeneralTypeIssues" + }, + "reportImplicitOverride": { + "$ref": "#/definitions/reportImplicitOverride" + }, + "reportImplicitStringConcatenation": { + "$ref": "#/definitions/reportImplicitStringConcatenation" + }, + "reportImportCycles": { + "$ref": "#/definitions/reportImportCycles" + }, + "reportIncompatibleMethodOverride": { + "$ref": "#/definitions/reportIncompatibleMethodOverride" + }, + "reportIncompatibleVariableOverride": { + "$ref": "#/definitions/reportIncompatibleVariableOverride" + }, + "reportIncompleteStub": { + "$ref": "#/definitions/reportIncompleteStub" + }, + "reportInconsistentConstructor": { + "$ref": "#/definitions/reportInconsistentConstructor" + }, + "reportInconsistentOverload": { + "$ref": "#/definitions/reportInconsistentOverload" + }, + "reportIndexIssue": { + "$ref": "#/definitions/reportIndexIssue" + }, + "reportInvalidStringEscapeSequence": { + "$ref": "#/definitions/reportInvalidStringEscapeSequence" + }, + "reportInvalidStubStatement": { + "$ref": "#/definitions/reportInvalidStubStatement" + }, + "reportInvalidTypeArguments": { + "$ref": "#/definitions/reportInvalidTypeArguments" + }, + "reportInvalidTypeForm": { + "$ref": "#/definitions/reportInvalidTypeForm" + }, + "reportInvalidTypeVarUse": { + "$ref": "#/definitions/reportInvalidTypeVarUse" + }, + "reportMatchNotExhaustive": { + "$ref": "#/definitions/reportMatchNotExhaustive" + }, + "reportMissingImports": { + "$ref": "#/definitions/reportMissingImports" + }, + "reportMissingModuleSource": { + "$ref": "#/definitions/reportMissingModuleSource" + }, + "reportMissingParameterType": { + "$ref": "#/definitions/reportMissingParameterType" + }, + "reportMissingSuperCall": { + "$ref": "#/definitions/reportMissingSuperCall" + }, + "reportMissingTypeArgument": { + "$ref": "#/definitions/reportMissingTypeArgument" + }, + "reportMissingTypeStubs": { + "$ref": "#/definitions/reportMissingTypeStubs" + }, + "reportNoOverloadImplementation": { + "$ref": "#/definitions/reportNoOverloadImplementation" + }, + "reportOperatorIssue": { + "$ref": "#/definitions/reportOperatorIssue" + }, + "reportOptionalCall": { + "$ref": "#/definitions/reportOptionalCall" + }, + "reportOptionalContextManager": { + "$ref": "#/definitions/reportOptionalContextManager" + }, + "reportOptionalIterable": { + "$ref": "#/definitions/reportOptionalIterable" + }, + "reportOptionalMemberAccess": { + "$ref": "#/definitions/reportOptionalMemberAccess" + }, + "reportOptionalOperand": { + "$ref": "#/definitions/reportOptionalOperand" + }, + "reportOptionalSubscript": { + "$ref": "#/definitions/reportOptionalSubscript" + }, + "reportOverlappingOverload": { + "$ref": "#/definitions/reportOverlappingOverload" + }, + "reportPossiblyUnboundVariable": { + "$ref": "#/definitions/reportPossiblyUnboundVariable" + }, + "reportPrivateImportUsage": { + "$ref": "#/definitions/reportPrivateImportUsage" + }, + "reportPrivateUsage": { + "$ref": "#/definitions/reportPrivateUsage" + }, + "reportPropertyTypeMismatch": { + "$ref": "#/definitions/reportPropertyTypeMismatch" + }, + "reportRedeclaration": { + "$ref": "#/definitions/reportRedeclaration" + }, + "reportReturnType": { + "$ref": "#/definitions/reportReturnType" + }, + "reportSelfClsParameterName": { + "$ref": "#/definitions/reportSelfClsParameterName" + }, + "reportShadowedImports": { + "$ref": "#/definitions/reportShadowedImports" + }, + "reportTypeCommentUsage": { + "$ref": "#/definitions/reportTypeCommentUsage" + }, + "reportTypedDictNotRequiredAccess": { + "$ref": "#/definitions/reportTypedDictNotRequiredAccess" + }, + "reportUnboundVariable": { + "$ref": "#/definitions/reportUnboundVariable" + }, + "reportUndefinedVariable": { + "$ref": "#/definitions/reportUndefinedVariable" + }, + "reportUnhashable": { + "$ref": "#/definitions/reportUnhashable" + }, + "reportUninitializedInstanceVariable": { + "$ref": "#/definitions/reportUninitializedInstanceVariable" + }, + "reportUnknownArgumentType": { + "$ref": "#/definitions/reportUnknownArgumentType" + }, + "reportUnknownLambdaType": { + "$ref": "#/definitions/reportUnknownLambdaType" + }, + "reportUnknownMemberType": { + "$ref": "#/definitions/reportUnknownMemberType" + }, + "reportUnknownParameterType": { + "$ref": "#/definitions/reportUnknownParameterType" + }, + "reportUnknownVariableType": { + "$ref": "#/definitions/reportUnknownVariableType" + }, + "reportUnnecessaryCast": { + "$ref": "#/definitions/reportUnnecessaryCast" + }, + "reportUnnecessaryComparison": { + "$ref": "#/definitions/reportUnnecessaryComparison" + }, + "reportUnnecessaryContains": { + "$ref": "#/definitions/reportUnnecessaryContains" + }, + "reportUnnecessaryIsInstance": { + "$ref": "#/definitions/reportUnnecessaryIsInstance" + }, + "reportUnnecessaryTypeIgnoreComment": { + "$ref": "#/definitions/reportUnnecessaryTypeIgnoreComment" + }, + "reportUnsupportedDunderAll": { + "$ref": "#/definitions/reportUnsupportedDunderAll" + }, + "reportUntypedBaseClass": { + "$ref": "#/definitions/reportUntypedBaseClass" + }, + "reportUntypedClassDecorator": { + "$ref": "#/definitions/reportUntypedClassDecorator" + }, + "reportUntypedFunctionDecorator": { + "$ref": "#/definitions/reportUntypedFunctionDecorator" + }, + "reportUntypedNamedTuple": { + "$ref": "#/definitions/reportUntypedNamedTuple" + }, + "reportUnusedCallResult": { + "$ref": "#/definitions/reportUnusedCallResult" + }, + "reportUnusedClass": { + "$ref": "#/definitions/reportUnusedClass" + }, + "reportUnusedCoroutine": { + "$ref": "#/definitions/reportUnusedCoroutine" + }, + "reportUnusedExcept": { + "$ref": "#/definitions/reportUnusedExcept" + }, + "reportUnusedExpression": { + "$ref": "#/definitions/reportUnusedExpression" + }, + "reportUnusedFunction": { + "$ref": "#/definitions/reportUnusedFunction" + }, + "reportUnusedImport": { + "$ref": "#/definitions/reportUnusedImport" + }, + "reportUnusedVariable": { + "$ref": "#/definitions/reportUnusedVariable" + }, + "reportWildcardImportFromLibrary": { + "$ref": "#/definitions/reportWildcardImportFromLibrary" + }, + "strict": { + "items": { + "pattern": "^(.*)$", + "title": "File or directory that should use 'strict' type checking rules", + "type": "string" + }, + "title": "Files and directories that should use 'strict' type checking rules", + "type": "array" + }, + "strictDictionaryInference": { + "$ref": "#/definitions/strictDictionaryInference" + }, + "strictListInference": { + "$ref": "#/definitions/strictListInference" + }, + "strictParameterNoneValue": { + "$ref": "#/definitions/strictParameterNoneValue" + }, + "strictSetInference": { + "$ref": "#/definitions/strictSetInference" }, "stubPath": { - "$id": "#/properties/stubPath", "default": "", "examples": [ "src/typestubs" @@ -1156,7 +1574,6 @@ "type": "string" }, "typeCheckingMode": { - "$id": "#/properties/typeCheckingMode", "default": "standard", "enum": [ "off", @@ -1168,20 +1585,17 @@ "type": "string" }, "typeshedPath": { - "$id": "#/properties/typeshedPath", "default": "", "pattern": "^(.*)$", "title": "Path to directory containing typeshed type stub files", "type": "string" }, "useLibraryCodeForTypes": { - "$id": "#/properties/useLibraryCodeForTypes", "default": true, "title": "Use library implementations to extract type information when type stub is not present", "type": "boolean" }, "venv": { - "$id": "#/properties/venv", "default": "", "examples": [ "python37" @@ -1191,14 +1605,12 @@ "type": "string" }, "venvPath": { - "$id": "#/properties/venvPath", "default": "", "pattern": "^(.*)$", "title": "Path to directory containing a folder of virtual environments", "type": "string" }, "verboseOutput": { - "$id": "#/properties/verboseOutput", "default": false, "title": "Output verbose logging", "type": "boolean"