From a32122ff65d62d67c14e43de2dd6496ba9d43bc4 Mon Sep 17 00:00:00 2001 From: saattrupdan Date: Mon, 15 Jul 2024 16:11:01 +0200 Subject: [PATCH] docs: Don't include add-rag bit if project is open source --- {{cookiecutter.project_name}}/README.md | 3 +-- {{cookiecutter.project_name}}/makefile | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_name}}/README.md b/{{cookiecutter.project_name}}/README.md index 696f429..3a322b5 100644 --- a/{{cookiecutter.project_name}}/README.md +++ b/{{cookiecutter.project_name}}/README.md @@ -18,8 +18,7 @@ Developer(s): 1. Run `make install`, which sets up a virtual environment and all Python dependencies therein. 2. Run `source .venv/bin/activate` to activate the virtual environment. -3. (Optional) Run `make install-pre-commit`, which installs pre-commit hooks for linting, formatting and type checking. -4. (Optional) Run `make add-rag` to add RAG functionality from [ragger](https://github.com/alexandrainst/ragger). +3. (Optional) Run `make install-pre-commit`, which installs pre-commit hooks for linting, formatting and type checking.{{'\n4. (Optional) Run `make add-rag` to add RAG functionality from [ragger](https://github.com/alexandrainst/ragger).' if cookiecutter.open_source != 'y'}} ### Adding and Removing Packages diff --git a/{{cookiecutter.project_name}}/makefile b/{{cookiecutter.project_name}}/makefile index fe5d9a4..b00097a 100644 --- a/{{cookiecutter.project_name}}/makefile +++ b/{{cookiecutter.project_name}}/makefile @@ -5,6 +5,10 @@ # Exports all variables defined in the makefile available to scripts .EXPORT_ALL_VARIABLES: +{% if cookiecutter.open_source == 'y' %} +# This is a test +{% endif %} + # Create .env file if it does not already exist ifeq (,$(wildcard .env)) $(shell touch .env)