项目作者: ryankanno

项目描述 :
An opinionated https://github.com/cookiecutter/cookiecutter for modern Python projects
高级语言: Python
项目地址: git://github.com/ryankanno/cookiecutter-py.git
创建时间: 2015-05-05T23:33:02Z
项目社区:https://github.com/ryankanno/cookiecutter-py

开源协议:MIT License

下载


cookiecutter-py


🐍 Modern Python project Cookiecutter template




GitHub Issues
GitHub Pull Requests
License


Each time you start a new Python project, you shouldn’t start from scratch.
Ideally, you’d start with a standard project structure and set of tools and
integrations to help facilitate writing quality Python code.

This modern Python Cookiecutter
template is the tool that will help you do just that.


✨ Features

🚀 Getting Started

Prerequisites

Install Cookiecutter

  1. poetry add cookiecutter
  2. # pip install cookiecutter
  3. # pipenv install cookiecutter

Optional: Install Cruft

  1. poetry add cruft
  2. # pip install cruft
  3. # pipenv install cruft

🛠️ Usage

Cookiecutter

  1. cookiecutter gh:ryankanno/cookiecutter-py

Note: If you want to use the auto approve / merge Dependabot workflow, make
sure to create tags major, minor, patch so that Dependabot can tag its
PRs. The workflow won’t merge anything with a major tag.

Cruft (Optional)

  1. cruft create https://github.com/ryankanno/cookiecutter-py/

🔍 Details

Coming soon to a README near you!

Docker

To build the container:

  1. DOCKER_BUILDKIT=1 docker build .

To run the container (if you’ve installed the defaults):

  1. docker run <image_id or tag> python -m surf.surf

Versioning

If you enable the PyPi workflow, versioning will happen via dunamai within the Github pipeline.

If instead, you prefer to version your package, please do it via poetry version $(dunamai from any) as recommended in their documentation.

🚧 Roadmap

See the open issues for a list of proposed features (and known issues).

☑️ TODO

  • add mutmut example to template
  • add hypothesis example to template
  • add licenses
  • add typeguard
  • version releases
  • update docs
    • include cookiecutter var descriptions
  • [X] update default/initial template doc structure
  • add publish docs workflow
  • [X] investigate uv
  • migrate to uv
  • plan for 1.0

🤝 Contributing

Contributions are very much appreciated.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/new-cookiecutter-feature)
  3. Commit your changes (git commit -m 'Added a new feature')
  4. Push to the feature branch (git push origin feature/new-cookiecutter-feature)
  5. Open a PR! 🎆

📝 License

Distributed under the MIT License. See LICENSE for more information.

📫 Contact

Ryan Kanno - @ryankanno

Project Link: https://github.com/ryankanno/cookiecutter-py