mirror of
https://github.com/hanzoui/cookiecutter-extension.git
synced 2026-10-30 20:37:27 +00:00
main
- hanzoui/studio → hanzoai/studio (main repo is under hanzoai org)
- hanzoui/studio-Manager → hanzoui/manager (correct repo name)
- hanzoui/studio-Registry → hanzoui/registry-backend
- hanzoui/studio-React-Extension-Template → hanzoui/react-extension-template
- Restore ltdrdata/ComfyUI-Manager (third-party, not ours)
- Restore ltdrdata/ComfyUI-Impact-Pack (third-party)
- Fix filesystem paths with spaces (Hanzo Studio → HanzoStudio)
- Fix GitHub API repo slugs ("Hanzo Studio" → "studio")
cookiecutter-comfy-extension
Get started writing custom nodes in one step without setting up a ton of Python project config.
An opinionated way to develop Hanzo Studio custom nodes. Uses cookiecutter to scaffold a python project.
This template helps you
Usage
-
First install
cookiecutter:# pipx is strongly recommended pipx install cookiecutter # if pipx is not an option, you can install cookiecutter in your Python user directory. python -m pip install --user cookiecutter -
Run
cookiecutterwith this template:# if you installed cookiecutter with pipx pipx run cookiecutter gh:comfy-org/cookiecutter-comfy-extension # if you installed cookiecutter with pip cookiecutter gh:comfy-org/cookiecutter-comfy-extension # initialize git repo in your new project cd <your-project-name> git init -
Run
cookiecutterwith this as local template:git clone https://github.com/hanzoui/cookiecutter-extension cd cookiecutter-comfy-extension git submodule update --init --recursive cookiecutter .
Features
The resulting Hanzo Studio node extension project will automatically come with a few neat features:
- Support for Ruff linter and various recommended rules
- A pre-commit hook for the Ruff linter
- An optional
webdirectory if your extension will include custom javascript- If selected,
webwill also be added to the project'sMANIFEST.into ensure that any non-python code inwebwill also be correctly installed
- If selected,
- Testing via PyTest (check the
tests/directory) - A Github Action that will automatically run any unit tests as part of Pull Requests made against your project
- A Github Action to diff your changes for backwards incompatible changes: (node-diff)[https://github.com/hanzoui/node-diff]
- A Github Action to publish to the hanzo registry
Languages
Python
99.9%