Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在Google App Store Cloud Shell中配置pycodestyle_Python_Google App Engine_Google Cloud Shell_Pycodestyle - Fatal编程技术网

Python 如何在Google App Store Cloud Shell中配置pycodestyle

Python 如何在Google App Store Cloud Shell中配置pycodestyle,python,google-app-engine,google-cloud-shell,pycodestyle,Python,Google App Engine,Google Cloud Shell,Pycodestyle,昨天,我在Google Cloud Shell中的python脚本开始包含以下关于行长度的pycodestyle警告: [pycodestyle]E501行太长(85>79个字符) 虽然有些警告/评论很有用,但有些只是烦人,我希望能够配置这些警告,例如,将可接受的长度延长到79个字符以上。是否可以包含setup.cfg或类似文件来配置这些警告,以及它需要在Cloud Shell目录结构中的什么位置 谢谢, 克里斯是的,这是可能的 您可以添加一个~/.config/pycodestyle文件,如下

昨天,我在Google Cloud Shell中的python脚本开始包含以下关于行长度的pycodestyle警告:

[pycodestyle]E501行太长(85>79个字符)

虽然有些警告/评论很有用,但有些只是烦人,我希望能够配置这些警告,例如,将可接受的长度延长到79个字符以上。是否可以包含setup.cfg或类似文件来配置这些警告,以及它需要在Cloud Shell目录结构中的什么位置

谢谢, 克里斯是的,这是可能的

您可以添加一个
~/.config/pycodestyle
文件,如下所示:

[pycodestyle]
max-line-length = 100

还有其他选项,请参见。

我无法让它与pycodestyle文件一起工作,但从您的链接中,我创建了一个带有该设置的tox.ini文件,它工作了。谢谢你的帮助