Skip to content

Commit

Permalink
pylint: use stdin (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heradar authored Aug 8, 2024
1 parent efc6fc8 commit ff2aa32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/lint/linters/pylint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ local severities = {

return {
cmd = 'pylint',
stdin = false,
stdin = true,
args = {
'-f', 'json'
'-f',
'json',
'--from-stdin',
function()
return vim.api.nvim_buf_get_name(0)
end,
},
ignore_exitcode = true,
stream = 'stdout',
parser = function(output, bufnr)
if output == "" then return {} end
local diagnostics = {}
Expand Down

0 comments on commit ff2aa32

Please sign in to comment.