Introduction
A copier
-based template for Python packages.
Features
- ๐ฆ Package management: Test, build, and deploy your package with Hatch environments.
- ๐ Documentation: Document your package in MyST or MkDocs.
- ๐งน Pre-commit: Format and lint your code with Ruff.
- โ๏ธ GitHub Actions:
- Deploy documentation to GitHub Pages or Read the Docs.
- Run pre-commit checks and tests on every pull request.
Usage
Follow the copier
installation instructions.
Then simply run
copier copy https://github.com/mbercx/python-copier <package_name>
And answer the questions to generate a new Python package.
Next steps
After copying the template, you might still have to do some additional configuration.
Deploy documentation
Read the Docs
- Push your code to GitHub.
- Go to Read the Docs (RTD) and import your project.
The build will use the included
.readthedocs.yaml
automatically. - Set the RTD settings to build from GitHub pull requests.