cookiecutter hatch pypackage
1.0.0
Cookiecutter template for a cutting-edge Python package: Hatch
, ruff
, mypy
, GitHub Actions
and more!
Details | |
Features |
Hatch
package managementv0.9
ruff
which replaces isort, flake8, black, etc.mypy
deptry
pytest
with optional asyncio setup.dependabot
, release-drafter
, labeler
, publish to PYPI workflows
, publish to test PYPI workflows
& more.src
folder avoiding many common errors.Generate the project:
This project will use pipx
to install hatch
in an isolated enviroment. Make sure you have pipx
installed before running the following command.
cookiecutter https://github.com/Aviksaikat/cookiecutter-hatch-pypackage
The generator will automatically call hatch env create & git init
at the end.
Then, for the GitHub Actions pipelines
to work correctly, you should:
Codecov
.CODECOV_TOKEN
in your GitHub repository secrets. You can find in the Codecov settings of the corresponding project.GitHub Pages
using the GitHub Actions
source.PyPI
for testing.cruft is a layer above Cookiecutter allowing you to update your project from the template after it has been generated.
cruft create https://github.com/Aviksaikat/cookiecutter-hatch-pypackage
This project is licensed under the terms of the MIT license.