Configuration:
The project options are read from the [pep8] section of the tox.ini
file or the setup.cfg file located in any parent folder of the path(s)
being processed. Allowed options are: exclude, filename, select,
ignore, max-line-length, hang-closing, count, format, quiet, show-
pep8, show-source, statistics, verbose.
我已经使用设置.cfg我的项目中的文件。它与src文件夹并行,包含以下内容:
这样,即使在命令行上或从任何其他编辑器中使用pep8,也可以获得预期的结果。您必须更改ignore行以匹配要禁止显示的错误代码。在
请参见pep8帮助的输出:
相关问题 更多 >
编程相关推荐