commandante:概念验证工具,用于在Python代码中查找缺少的尾随逗号

时间:2021-05-08 10:38:54
【文件属性】:
文件名称:commandante:概念验证工具,用于在Python代码中查找缺少的尾随逗号
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-08 10:38:54
Python 突击队 用于在Python表达式中查找被遗忘的尾随逗号的简单工具。 我为什么还要... 老实说,该工具对大多数用户并没有太多用处。 但是,总会有一些用斧子挑剔的nitpickers来与GitHub diff中多余的代码打交道。 希望它将帮助您与他们打交道。 :) 最严重的违规者之一是在集合的末尾缺少尾随逗号,这些逗号分布在多个行中。 向其中添加新项涉及在前一行添加逗号,这在diff中显示。 安装 pip install commandante 运行测试 pip install pytest py.test tests 用法 bash-3.2$ commandante 1.py main.py test.py main.py:45:72: Y001 missing trailing comma test.py:46:12: Y001 missing trailing comma 选项 -
【文件预览】:
commandante-master
----setup.py(1KB)
----.gitignore(726B)
----LICENSE(1KB)
----commandante()
--------__init__.py(47B)
--------main.py(3KB)
----README.md(1KB)
----tests()
--------test_finding.py(2KB)

网友评论