Closed twmr closed 4 years ago
Hi @thisch, what are you suggesting :-) ?
pylint can now read the source code from stdin in contrast to reading it from a normal file. Reading from stdin is already supported by many linters, but pylint got support for it last year.
To read the file from stdin you would have to call it like
cat source.py | pylint --from-stdin source.py
IMO this new feature should be used in pyls, because then pyls could report issues of unsaved changes in files. See line 50 of pylint_lint.py
Since version 2.4 pylint has support for reading files from memory (stdin) by using the
--from-stdin
cmd line optionhttps://github.com/palantir/python-language-server/blob/143d9931cd0cabe92e1370b344cb02c406e0b0f1/pyls/plugins/pylint_lint.py#L51