小编Kir*_*ran的帖子

python flake8 忽略 E501 和最大行长度

使用两者的目的是什么

[flake8]
ignore = E501
max-line-length = 120 
Run Code Online (Sandbox Code Playgroud)

我在 setup.cfg 文件中看到很多遵循这种格式的代码库,但我的问题是,如果您忽略 E501,那么您的代码在模块中每行接受任意数量的字符,为什么他们要使用最大行长度?

python pep8 pycodestyle

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

pep8 ×1

pycodestyle ×1

python ×1