评论主题Lorem ipsum
review-ipsum的Python项目详细描述
查看IPSUM
回顾ipsum python包-用回顾主题生成的lorem ipsum。创建x句子数的评论。
安装
使用pip:
pip install review_ipsum
用法
参数: 句子数(int):所需的句子数。
返回: 格式化句子的一段。
例如:
>>> from review_ipsum import create_review
>>> create_review(number_of_sentences=6)
<<< "The screen size is just what I need. Took longer than I expected. So fast. I did'nt even know movies could look this good! Awesome product! Will buy this again. Great deal. "
代码样式
此包使用pre-commit强制执行编码样式。这些预先生成的提交挂钩可以与以下组件一起安装:
$ pre-commit install -f --install-hooks
当前的样式检查工具是:
- isort:python导入排序
- 薄片8:Python绒线
- 黑色:显式python代码格式
注意:有些钩子需要python 3.6在您的路径上可用。
贡献
- 叉开!
- 创建功能分支(
git checkout -b my-newfeature
) - 提交更改(
git commit -m 'Some helpful feature'
) - 推动(
git push origin my-new-feature
) - 创建新的拉取请求