Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spyder 4.1.5 disable selected pycodestyle warnings

After updating Spyder to 4.1.5 my script is covered with a whole bunch of taste-specific alerts like:

Code analysis:
E261 at least two spaces before inline comment (pycodestyle E261)

or

Code analysis:
E266 too many leading '#' for block comment (pycodestyle E266)

While many of the warnings improve my code, I would like to disable the ones that I disagree with (like for example the two listed above).

How can I do it?

like image 371
Paweł Wójcik Avatar asked Nov 25 '25 10:11

Paweł Wójcik


1 Answers

OK, I have found it Tools -> Preferences -> Completion and linting -> Code Style then mark the checkbox Enable code style linting and then list all the unwanted warnings, separate them with commas.

like image 179
Paweł Wójcik Avatar answered Nov 27 '25 00:11

Paweł Wójcik



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!