Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pylint support. #385

Merged
merged 1 commit into from
Mar 9, 2019
Merged

Add pylint support. #385

merged 1 commit into from
Mar 9, 2019

Conversation

DanAlbert
Copy link
Contributor

@DanAlbert DanAlbert commented Jun 27, 2018

This also adds an is_saved argument to the pyls_lint hookspec, since
pylint doesn't expose an API for operating on in-memory contents, only
files.

Fixes #129

@palantirtech
Copy link
Member

Thanks for your interest in palantir/python-language-server, @DanAlbert! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@DanAlbert
Copy link
Contributor Author

Why are the circleci and appveyor/branch checks stuck? There aren't any links for me to see what went wrong. Have they just not started?

@DanAlbert
Copy link
Contributor Author

Just updated with a couple more bug fixes and matching test cases.

@DanAlbert DanAlbert mentioned this pull request Aug 5, 2018
@ghost
Copy link

ghost commented Aug 9, 2018

Any comments around this merge? Would love Pylint in pyls!

@dmitry-krasilnikov
Copy link

It'd be great to have pylint supported by pyls. The truth is pylint is the only thing we miss

@tvallois
Copy link

tvallois commented Dec 7, 2018

Any news about this PR?

@jsenin jsenin mentioned this pull request Dec 18, 2018
@Yevgnen
Copy link

Yevgnen commented Dec 21, 2018

Any news?

Copy link
Contributor

@gatesn gatesn left a comment

Choose a reason for hiding this comment

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

A few small changes, I'd like to get this merged since I've given up trying to patch astroid to work in-memory!

pyls/python_ls.py Outdated Show resolved Hide resolved
pyls/plugins/pylint_lint.py Outdated Show resolved Hide resolved
pyls/python_ls.py Outdated Show resolved Hide resolved
pyls/plugins/pylint_lint.py Outdated Show resolved Hide resolved
pyls/plugins/pylint_lint.py Show resolved Hide resolved
This was referenced Feb 15, 2019
@twmr
Copy link

twmr commented Feb 15, 2019

since pylint doesn't expose an API for operating on in-memory contents

This will change with pylint-dev/pylint#2746 ;)

@DanAlbert
Copy link
Contributor Author

Thanks for the feedback, and sorry I haven't had a chance to respond yet. I'll try to address the requested changes soon so we can get this merged.

This also adds an `is_saved` argument to the pyls_lint hookspec, since
pylint doesn't expose an API for operating on in-memory contents, only
files.
@DanAlbert
Copy link
Contributor Author

Alright, addressed all the review comments and rebased on top of ToT, all tests still passing.

@gatesn gatesn merged commit 5e785fe into palantir:develop Mar 9, 2019
@gatesn gatesn mentioned this pull request Mar 27, 2019
@MarkKoz
Copy link

MarkKoz commented May 9, 2019

Great, now how does one disable this?

"pylint": {
    "enabled": false
},

The above does not work as it would for any other plugin.

@ysftaha
Copy link

ysftaha commented Jun 7, 2019

Now how does one pass flags to pylint?

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.

Pylint Support
9 participants