我找到了pep8的文档,但无法理解如何编写这些文档。除了设置最大行长和忽略之外,我甚至找不到其他选项的例子。
我正在尝试编写一个.pep8.rc文件,其中除其他外,我需要执行以下操作:
./random)有人能用一个例子或链接来回答吗?
发布于 2015-12-17 21:08:18
发布于 2018-10-08 13:39:37
遗憾的是,Andy的答案并不适用于pytest / pytest-pep8 / flake8。
吡啶8
要做到这一点,你必须使用
# content of setup.cfg
[pytest]
pep8maxlinelength = 99或
[pytest]
max-line-length=99奇怪的是,下面的内容不适用于
[tool:pytest]
max-line-length=99吡咯烷酮8
添加
[flake8]
max-line-length=99https://stackoverflow.com/questions/30304409
复制相似问题