Replace pyright linting with Ruff

This commit is contained in:
pro100ton 2024-11-25 21:32:05 +03:00
parent aa28e0c8df
commit 903ac95d2b

View file

@ -132,5 +132,33 @@ return {
})
end,
})
-- Ruff setup
lspconfig.ruff.setup({
init_options = {
settings = {
-- Ruff language server settings go here
logLevel = "debug",
},
},
})
-- Pyright setup
lspconfig.pyright.setup({
settings = {
pyright = {
-- Using Ruff's import organizer
disableOrganizeImports = true,
},
python = {
analysis = {
-- Ignore all files for analysis to exclusively use Ruff for linting
ignore = { "*" },
diagnosticMode = "off",
typeCheckingMode = "off",
},
},
},
})
end,
}