From 4970b2422e79d83820a6567ee41501fb332c71f3 Mon Sep 17 00:00:00 2001 From: David Glick Date: Mon, 15 Apr 2024 16:16:00 -0600 Subject: [PATCH] Make it possible to run the template without docker --- README.md | 2 +- hooks/__init__.py | 0 hooks/post_gen_project.py | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 hooks/__init__.py diff --git a/README.md b/README.md index fac310f..6ee00e1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Welcome to **Cookiecutter Plone Starter**! Your one-stop solution to kickstart [ - **pipx**: A handy tool for installing and running Python applications. - **NodeJS & Yarn**: Essential for managing and running JavaScript packages. -- **Docker**: For containerization and easy deployment. +- **Docker**: For containerization and easy deployment. (Optional) ### Installation Guide 🛠️ diff --git a/hooks/__init__.py b/hooks/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index b6dddb1..42632f4 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -275,9 +275,8 @@ def prepare_backend(): for step in steps: msg, command, shell, cwd = step print(f" - {msg}") - result = run_cmd(command, shell=shell, cwd=cwd) - if not result: - sys.exit(1) + run_cmd(command, shell=shell, cwd=cwd) + # Note: we intentionally don't exit if formatting fails. volto_version = "{{ cookiecutter.volto_version }}"