replace basedpyright instead by pyrefly and checking syntax by pyright
This commit is contained in:
@@ -5,33 +5,42 @@ return {
|
||||
c.settings.python.pythonPath = vim.fn.exepath "python3"
|
||||
end,
|
||||
settings = {
|
||||
|
||||
python = false,
|
||||
basedpyright = {
|
||||
disableLanguageServices = false,
|
||||
disableOrganizeImports = true,
|
||||
disableTaggedHints = true,
|
||||
|
||||
useLibraryCodeForTypes = false,
|
||||
useLibraryCodeForTypes = true,
|
||||
openFilesOnly = true,
|
||||
|
||||
analysis = {
|
||||
autoSearchPath = false,
|
||||
useLibraryCodeForTypes = false,
|
||||
logLevel = "Trace",
|
||||
|
||||
typeCheckingMode = "basic",
|
||||
verboseOutput = false,
|
||||
autoImportCompletions = false,
|
||||
pythonPlatform = "Linux",
|
||||
autoSearchPaths = true,
|
||||
deprecateTypingAliases = false,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
logLevel = "Error",
|
||||
typeCheckingMode = "off",
|
||||
inlayHints = {
|
||||
variableTypes = true,
|
||||
variableTypes = false,
|
||||
genericTypes = true,
|
||||
callArgumentNames = false,
|
||||
callArgumentNames = true,
|
||||
},
|
||||
exclude = {
|
||||
"**/unsloth_compiled_cache/**",
|
||||
"**/__pycache__/**",
|
||||
"**/.venv/**",
|
||||
"__index__",
|
||||
"**/.*",
|
||||
},
|
||||
ignore = {
|
||||
"**/unsloth_compiled_cache/**",
|
||||
"**/__pycache__/**",
|
||||
"__index__",
|
||||
"**/.venv/**",
|
||||
"**/*.ipynb",
|
||||
},
|
||||
autoImportCompletions = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -4,17 +4,38 @@ return {
|
||||
if not c.settings.python then c.settings.python = {} end
|
||||
c.settings.python.pythonPath = vim.fn.exepath "python3"
|
||||
end,
|
||||
settings = {
|
||||
pyright = {
|
||||
disableLanguageServices = false,
|
||||
disableOrganizeImports = true,
|
||||
analysis = {
|
||||
diagnosticMode = "openFilesOnly",
|
||||
typeCheckingMode = "basic",
|
||||
autoSearchPath = true,
|
||||
-- diagnosticSeverityOverrides = false,
|
||||
logLevel = "Error",
|
||||
},
|
||||
},
|
||||
},
|
||||
settings = {
|
||||
python = {
|
||||
disableLanguageServices = true,
|
||||
disableOrganizeImports = true,
|
||||
disableTaggedHints = true,
|
||||
openFilesOnly = true,
|
||||
useLibraryCodeForTypes = false,
|
||||
|
||||
analysis = {
|
||||
useLibraryCodeForTypes = false,
|
||||
autoImportCompletions = false,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
typeCheckingMode = "off",
|
||||
autoSearchPath = false,
|
||||
logLevel = "Error",
|
||||
verboseOutput = false,
|
||||
pythonPlatform = "Linux",
|
||||
exclude = {
|
||||
"**/unsloth_compiled_cache/**",
|
||||
"**/__pycache__/**",
|
||||
"**/.venv/**",
|
||||
"__index__",
|
||||
"**/.*",
|
||||
},
|
||||
ignore = {
|
||||
"**/unsloth_compiled_cache/**",
|
||||
"**/__pycache__/**",
|
||||
"__index__",
|
||||
"**/.venv/**",
|
||||
"**/*.ipynb",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user