Skip to content

Instantly share code, notes, and snippets.

@lsloan
Last active August 25, 2016 17:57
Show Gist options
  • Save lsloan/85711cfac4498410b8d8ed17e7ca044a to your computer and use it in GitHub Desktop.
Save lsloan/85711cfac4498410b8d8ed17e7ca044a to your computer and use it in GitHub Desktop.

When using the flake8 program, it reads settings from the "[flake8]" section of tox.ini. When using the pycodestyle program (FKA pep8), it reads settings from the "[pep8]" (some sources say "[pycodestyle]") section of tox.ini. They are both places where one can put a "ignore=" setting with a list of error codes to be ignored by the respective programs.

Since developers are already used to this convention, why doesn't the Python plugin for IntelliJ IDEA follow it, too? I'm working with projects that have listed codes to be ignored in tox.ini, but IntelliJ IDEA still flags the violations in my code. I need to ignore each type of violation, one by one. What's worse, IntelliJ IDEA doesn't include the code when it gives the violation messages. So I end up copying the list of codes from tox.ini to the PEP8 inspection configuration in project settings.

This is an annoying waste of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment