Use Pylint from inside PyCharm

Answered

Hi Everyone :-)

I've just started using PyCharm for windows, and have also downloaded Pylint.

Is there a way to configure Pycharm to use Pylint on my code?

Can it be automated somehow?

Many thanks,

Val.

12 comments
Comment actions Permalink

Hello valar,

You can configure pylint as an external tool (Settings | External Tools).

Note that PyCharm's built-in inspections cover most of the interesting checks

done by PyLint anyway.

Hi Everyone :-)

I've just started using PyCharm for windows, and have also downloaded

Pylint.

Is there a way to configure Pycharm to use Pylint on my code?

Can it be automated somehow?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Thanks for your help Dmitry :-)

I'll try and configure it now, though it's great to have PyCharm cover that as well.

Thanks again!

Val.

0
Comment actions Permalink

Is there a way in PyCharm to integrate Pylint a bit tighter then an external tool? For example: Pylint output is parsed by PyCharm and is clickable, or even better: inspections are shown according to pylints output. I am using Debian and PyCharm version 2016.1.2.

9
Comment actions Permalink

I find that PyCharm's code inspections fall far short from what pylint offers. Particularly when you consider radon and mccabe support. I would very much like to see either better support for external linters, or, a lot more functionality built into PyCharm's own inspections.

4
Comment actions Permalink

Any updates on this? I would like to run pylint from PyCharm and get hints and highlights directly.

6
Comment actions Permalink

Note that one handy pylint inspection that is missing from the built-in PyCharm inspections is

misplaced bare raise

which is used when a bare raise is used outside of an except block:

try:

    do_something()

    if some_condition:

        raise

except Exception as ex:

    handle_exception(ex)
0
Comment actions Permalink

I too ended up here looking for PyCharm support for pylint's output-format=parseable option.  It would be very nice to have the output better integrated into the IDE.

2
Comment actions Permalink

++

I too ended up here looking for PyCharm support for pylint's output-format=parseable option.  It would be very nice to have the output better integrated into the IDE.

1
Comment actions Permalink

Any news here? I'd really also like to see a tighter integration of external tools and or pylint explicitly into pycharm.

With tighter integration i am thinking of:
* In-code-highlighting of issues like warnings/errors including explanation of error/warning/infos (treat issues from als real inspections?)

* integration into the code-lense

* more freedom to choose which (pylint)-inspections to activate/use (and possibilities to configure some of those)

1
Comment actions Permalink

We have related request on YouTrack: https://youtrack.jetbrains.com/issue/PY-8192

Feel free to vote for it and leave suggestions in comments.

1

Please sign in to leave a comment.