如何在Spyder上添加Python pep8排除项?

问题描述 投票:2回答:1

如何在Spyder mac os上添加Python pep8排除项?

添加此:

[pycodestyle]
ignore = W191

到此文件:/Users/myname/opt/anaconda3/bin/.pycodestyle

python-3.x macos spyder pep8 pycodestyle
1个回答
3
投票

这里是Spyder维护者)仅在Spyder 4中才有可能。要执行此操作,您需要进入菜单

Tools > Preferences > Completion and linting > Code style

然后激活名为Enable code style linting的选项,最后在名为Ignore the following errors or warnings的字段中添加排除列表。

© www.soinside.com 2019 - 2024. All rights reserved.