Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Python pep8 exclusion on Spyder?

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?

like image 640
Mattman85208 Avatar asked Dec 05 '25 18:12

Mattman85208


1 Answers

(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.

like image 142
Carlos Cordoba Avatar answered Dec 08 '25 08:12

Carlos Cordoba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!