3

How to add Python pep8 exclusions on Spyder mac os?

Added this:

[pycodestyle]
ignore = W191

to this file: /Users/myname/opt/anaconda3/bin/.pycodestyle <-- created this file and it just gets ignored. And please, how do I add multiple exclusions?

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
Mattman85208
  • 1,858
  • 2
  • 29
  • 51

1 Answers1

4

(Spyder maintainer here) This is only possible in Spyder 4. To do it you need to go to the menu

Tools > Preferences > Completion and linting > Code style

then activate the option called Enable code style linting and finally add your exclusion list in the field called Ignore the following errors or warnings.

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124