replace basedpyright instead by pyrefly and checking syntax by pyright

This commit is contained in:
huyjaky
2025-11-05 18:09:01 +07:00
parent 1f7fda6f21
commit 70f0c7fe5d
8 changed files with 168 additions and 71 deletions

View File

@@ -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,
},
},
},

View File

@@ -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",
},
},
},
},
}