https://stackoverflow.com/questions/4341746/how-do-i-disable-a-pylint-warning
Visual studio code通常使用pylint做python語法檢查疑务,有時候會給出很多非必要的錯誤提示
比如說:
missing-function-docstring 函數(shù)沒有注釋
trailing-whitespace 多了一些空格
一些雞毛蒜皮的東西
生成一個配置文件:
lint.py --generate-rcfile > standard.rc
將要關(guān)閉的提示名稱加在
[MESSAGES CONTROL]
disable=....
的下面。
最后在vscode 的 設(shè)置里面加上pylint配置文件參數(shù) --rcfile
圖片.png