如何在Spyder mac os上添加Python pep8排除项?
添加此:
[pycodestyle]
ignore = W191
到此文件:/Users/myname/opt/anaconda3/bin/.pycodestyle
(这里是Spyder维护者)仅在Spyder 4中才有可能。要执行此操作,您需要进入菜单
Tools > Preferences > Completion and linting > Code style
然后激活名为Enable code style linting
的选项,最后在名为Ignore the following errors or warnings
的字段中添加排除列表。