@@ -80,6 +80,20 @@ If this option is set to \"openFilesOnly\", pyright analyzes only open files."
80
80
(const " workspace" ))
81
81
:group 'lsp-pyright )
82
82
83
+ (defcustom lsp-pyright-type-checking-mode " standard"
84
+ " Specifies the default rule set to use.
85
+
86
+ \" off\" disables all type-checking rules, but Python syntax and semantic
87
+ errors are still reported. \" all\" reports all errors in basedpyright,
88
+ but is not supported by pyright. "
89
+ :type '(choice
90
+ (const :tag " Off" " off" )
91
+ (const :tag " Basic" " basic" )
92
+ (const :tag " Standard" " standard" )
93
+ (const :tag " Strict" " strict" )
94
+ (const :tag " All (basedpyright only)" " all" ))
95
+ :group 'lsp-pyright )
96
+
83
97
(defcustom lsp-pyright-log-level " info"
84
98
" Determines the default log level used by pyright.
85
99
This can be overridden in the configuration file."
@@ -213,6 +227,8 @@ Current LSP WORKSPACE should be passed in."
213
227
`((,(concat lsp-pyright-langserver-command " .disableLanguageServices" ) lsp-pyright-disable-language-services t )
214
228
(,(concat lsp-pyright-langserver-command " .disableOrganizeImports" ) lsp-pyright-disable-organize-imports t )
215
229
(,(concat lsp-pyright-langserver-command " .disableTaggedHints" ) lsp-pyright-disable-tagged-hints t )
230
+ (,(concat lsp-pyright-langserver-command " .typeCheckingMode" ) lsp-pyright-type-checking-mode)
231
+ (" python.analysis.typeCheckingMode" lsp-pyright-type-checking-mode)
216
232
(" python.analysis.autoImportCompletions" lsp-pyright-auto-import-completions t )
217
233
(" python.analysis.diagnosticMode" lsp-pyright-diagnostic-mode)
218
234
(" python.analysis.logLevel" lsp-pyright-log-level)
0 commit comments