Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pylsp/plugins/pylint_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import re
from subprocess import Popen, PIPE
import os
import shlex

from pylsp import hookimpl, lsp

Expand Down Expand Up @@ -91,7 +92,7 @@ def lint(cls, document, is_saved, flags=''):
'-f',
'json',
document.path
] + (str(flags).split(' ') if flags else [])
] + (shlex.split(str(flags)) if flags else [])
log.debug("Calling pylint with '%s'", ' '.join(cmd))

with Popen(cmd, stdout=PIPE, stderr=PIPE,
Expand Down