Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 903 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 903 Bytes

Cookiecutter Py Package

个人用的Cookiecutter


使用方式

pip install cookiecutter 
cookiecutter https://github.com/AngusWG/cookiecutter-py-package.git

参数说明

  • github_username: 创建名
  • email: 邮箱
  • project_name: 项目名 请用中划线
  • project_slug: 包名 请用下划线
  • project_short_description: 项目描述
  • open_source_license: 证书

  • 设置git commit时执行make check

cmd 上运行下面脚本 设置pre-commit

python -c "from urllib.request import urlopen ;exec(urlopen('https://github.com/AngusWG/cookiecutter-py-package/raw/master/git_pre_commit_hook.py').read())"