https://github.com/alanwilter/poetry-python-cookiecutter
A cookiecutter template using poetry, ruff, pre-commit and mypy
https://github.com/alanwilter/poetry-python-cookiecutter
Last synced: 2 months ago
JSON representation
A cookiecutter template using poetry, ruff, pre-commit and mypy
- Host: GitHub
- URL: https://github.com/alanwilter/poetry-python-cookiecutter
- Owner: alanwilter
- License: mit
- Created: 2024-02-25T14:40:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-20T09:58:29.000Z (11 months ago)
- Last Synced: 2025-01-23T13:18:47.411Z (4 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Python Poetry Managed Cookiecutter template
[](https://github.com/alanwilter/poetry-python-cookiecutter/graphs/commit-activity)
[](https://github.com/alanwilter/poetry-python-cookiecutter)
[](https://github.com/alanwilter/poetry-python-cookiecutter)
[](https://github.com/alanwilter/poetry-python-cookiecutter)
[](https://python-poetry.org/)
[](https://github.com/astral-sh/ruff)
[](https://github.com/pre-commit/pre-commit)This is a [`cookiecutter`](https://cookiecutter.readthedocs.io) template that utilises [`poetry`](https://python-poetry.org/), [`ruff`](), [`pre-commit`](https://pre-commit.com/), and [`mypy`](http://mypy-lang.org/).
## How to Use
1. Install poetry, via `homebrew` or [`pipx`](https://github.com/pypa/pipx):
```bash
brew install poetry
```or
```bash
pipx install poetry
```2. Create a Python virtual environment of your preference and activate it.
3. Install `cookiecutter` and [`cruft`](https://github.com/cruft/cruft) via, e.g., [`homebrew`](https://brew.sh/) or `pip`:
```bash
python3 -m pip install --upgrade cookiecutter cruft
```4. Run the command below to create your new project based on this cookiecutter template:
```bash
cookiecutter https://github.com/alanwilter/poetry-python-cookiecutter
```or
```bash
cookiecutter gh:/alanwilter/poetry-python-cookiecutter
```Alternatively, you can use `cruft`, which is a layer above `cookiecutter`. This allows you to manage your project from the template after it has been generated, enabling you to check, diff, or update it:
```bash
cruft create https://github.com/alanwilter/poetry-python-cookiecutter
```The command line interface will ask you to provide several informations.
5. It's optional, but we strongly recommend [`commitizen`](https://github.com/commitizen-tools/commitizen)
## Not Exactly What You Want?
If this template doesn't meet your needs, you can explore thousands of other `cookiecutter` templates [here](https://github.com/search?q=cookiecutter&%3Btype=Repositories&type=repositories).