How do I turn off all flake8 stylistic errors and leave programmatic errors?

Viewed 541

I'm using flake8 with Atom to do Python linting. I would prefer not to see stylistic errors, just programmatic ones. I.e. I don't care if I didn't put the proper number of spaces around an operator, but I still want to know if a variable is used before initialization.

I am aware that I can put specific error numbers in the "ignore" section of the flake8ini.rc, but is there a way to turn off all stylistic errors in one fell swoop?

1 Answers

It sounds like you really just want to run pyflakes and not pycodestyle. You should be able to disable pycodestyle by ignoring all E and F violations:

[flake8]
ignore = E,F
Related