How to suppress a certain warning in Spyder editor?

耗尽温柔 提交于 2019-12-11 05:34:43

问题


The editor in Spyder always gives me warnings for unused imports/variables immediately after I type the line. I want to suppress such warnings. How do I do that? And I want this to happen for every file I open in the Spyder editor, wouldn't prefer local fixes.

I tried adding 'disable=' in ~/.pylintrc and it didn't work. Moreover, the Spyder editor uses pyflakes anyway.


回答1:


You need to go to

Tools > Preferences > Editor > Code Introspection/Analysis

and deactivate the option called

Real-time code analysis




回答2:


locate preferences -> Editor -> Code Introspection/Analysis -> Deactivate/Uncheck the Real time code analysis Warning: It will also stop showing errors in the editor



来源:https://stackoverflow.com/questions/46568959/how-to-suppress-a-certain-warning-in-spyder-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!