show pyright errors
This commit is contained in:
parent
b56d703662
commit
a57f72f7c7
5 changed files with 28 additions and 42 deletions
|
|
@ -15,7 +15,7 @@ return {
|
|||
typescriptreact = { "eslint_d" },
|
||||
markdown = { "markdownlint" },
|
||||
php = { "phpcs" },
|
||||
python = { "ruff" }, -- Code quality/style checks (pyright handles types)
|
||||
-- Python: ruff LSP handles linting
|
||||
}
|
||||
|
||||
-- Helper: Find project-local executable, fallback to global
|
||||
|
|
@ -69,19 +69,6 @@ return {
|
|||
-- Configure markdownlint
|
||||
lint.linters.markdownlint.cmd = find_executable({ "markdownlint" }) or "markdownlint"
|
||||
|
||||
-- Configure ruff for Python linting (separate from formatting)
|
||||
lint.linters.ruff.cmd = find_executable({ "ruff" }) or "ruff"
|
||||
lint.linters.ruff.args = {
|
||||
"check",
|
||||
"--select", "ALL", -- All rules
|
||||
"--ignore", "E501,E999", -- Ignore line length (formatter handles) and syntax errors (pyright handles)
|
||||
"--force-exclude",
|
||||
"--quiet",
|
||||
"--output-format", "json",
|
||||
"--stdin-filename", function() return vim.api.nvim_buf_get_name(0) end,
|
||||
"-",
|
||||
}
|
||||
|
||||
-- Auto-lint on these events
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue