Configure pep8.py command line options in pycharm

Alex Flint picture Alex Flint · Mar 17, 2014 · Viewed 10.3k times · Source

Can I configure the command line arguments that PyCharm sends to pep8.py when it does its automatic PEP8 style checking? I would like to do something like

$ pep8 --ignore=E231 foo.py

However, in PyCharm under Project Settings -> Inspections I only see options to enable/disable PEP8 style checks in aggregate, but no option to enable/disable specific PEP8 violations.

Answer

Kawu picture Kawu · May 13, 2014

Found the solution here: http://iambigblind.blogspot.de/2013/02/configuring-pep8py-support-in-pycharm-27.html

Just add E501 to the list of ignore errors and the warning will go away in PyCharm 3 (and 4).

Edit:

According to a comment on the JetBrains site, someone said "The error code as of Pycharm 2017.3.4 is E111", see https://intellij-support.jetbrains.com/hc/en-us/community/posts/205816889-Disable-individual-PEP8-style-checking-line-length-?page=1#community_comment_360000113310