Skip to content

A cookiecutter package for an enlightened python package

License

Notifications You must be signed in to change notification settings

jvfe/cookiecutter-snekpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookiecutter Snekpack

A cookiecutter for making new Python repositories.

This template is different from @audreyfeldroy's cookiecutter-pypackage because it uses the source layout and has lots of code quality assurance checks built in. If you're looking for something similar but not quite like this, try her package or see her list of alternatives.

@cthoyt's written several blog posts outlining all of the ideas that made it into this template:

🛠️ Getting Started

  1. Install cookiecutter with:

    $ pip install cookiecutter
  2. Run cookiecutter with:

    $ cookiecutter https://github.com/jvfe/cookiecutter-snekpack -c jvfe-changes
  3. Enter the requested information, then win! Remember, package names should only have letters, numbers, and underscores.

  4. If you're working under version control, copy the repository into your folder tracked under git, commit the files, and push to your remote.

💪 Features

Your new python package will have the following:

  • Declarative setup with setup.cfg and pyproject.toml
  • Reproducible tests with pytest and tox
  • A command line interface with click
  • A vanity CLI via python entrypoints
  • Version management with bump2version
  • Documentation build with mkdocs and mkdocstrings
  • Testing of code quality with flake8 in tox
  • Testing of package metadata completeness with pyroma in tox
  • Testing of optional static typing with mypy in tox
  • A py.typed file so other packages can use your type hints
  • Automated running of tests on each push with GitHub Actions
  • Configuration for ReadTheDocs
  • A good base .gitignore generated from gitignore.io.
  • A pre-formatted README with badges
  • A pre-formatted LICENSE file with a choice of open-source licenses
  • A pre-formatted CONTRIBUTING guide
  • Automatic tool for releasing to PyPI with tox -e finish
  • A copy of the Contributor Covenant as a basic code of conduct

⚖️ License

This cookiecutter package is licensed under the MIT License.

About

A cookiecutter package for an enlightened python package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%