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.

2
13 comments

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

I described it for pep8 and pyflakes over on my site: http://www.in-nomine.org/2010/12/14/pycharm-and-external-lint-tools/

0
Avatar
Permanently deleted user
I've found an useful project on this subject.

https://github.com/perses76/pylint-pycharm

2013-01-17-162013_563x399_scrot.png
1
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

6

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

++

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

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

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

For those who are not stuck to PyCharm: PyDev/Eclipse supports integration of pylint as well as autopep8 and black. The found issues are shown in the Problems view and clicking on them hyperlinks to the code location as expected. (The python projects source folders need to be configured correctly to make it work.)

https://www.pydev.org/manual_adv_pylint.html

 

 

0

Please sign in to leave a comment.