Skip to content

Conversation

@mpanarin
Copy link
Contributor

@mpanarin mpanarin commented Jul 3, 2020

Mimics flake8 stdin usage.
This makes it possible for pylint to run on unsaved files
works on pylint>=2.5.0 and python 3+

I didn't notice a performance degradation in terms of running pylint itself.
Of course, there is a performance hit overall, as pylint will be run on every
change, and it can be fairly slow but there was a bunch of requests for that in emacs-lsp
community.
Disabled by default

ex. @chama-chomo

Fixes #796

@mpanarin mpanarin force-pushed the pylint_from_stdin branch 2 times, most recently from 159a7b8 to 5a2c8df Compare July 3, 2020 14:38
@twmr
Copy link

twmr commented Jul 10, 2020

This closes #796

@mpanarin
Copy link
Contributor Author

@ccordoba12 @goanpeca
can this PR get looked on, please?

Thanks!

Copy link
Contributor

@goanpeca goanpeca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, I ran it locally and gave it a quick review. All checks out.

Thanks @mpanarin !

Mimics flake8 stdin usage.
This makes it possible for pylint to run on unsaved files
works on pylint>=2.5.0

I didn't notice a performance degradation in terms of running pylint itself.
Of course, there *is* a performance hit overall, as pylint will be run on every
change, and it can be fairly slow
@mpanarin
Copy link
Contributor Author

mpanarin commented Sep 9, 2020

Can this be merged? It's been 2 month already (

@ccordoba12
Copy link
Contributor

We need to merge first #842 to verify that tests pass in this PR before merging.

@ccordoba12 ccordoba12 added this to the 0.35.0 milestone Sep 10, 2020
@ccordoba12 ccordoba12 changed the title Allow usage of pylint via stdin Allow usage of Pylint via stdin Sep 10, 2020
@ccordoba12 ccordoba12 merged commit 9bc744d into palantir:develop Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Pylint read from stdin feature

5 participants