Skip to content

Commit

Permalink
fix: Jinja newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Jul 15, 2024
1 parent c48a24d commit 286f560
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions {{cookiecutter.project_name}}/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ install-poetry:
pipx install --force poetry==1.8.2; \
echo "Installed Poetry.";
fi

{% endif -%}

install-dependencies:
Expand All @@ -125,7 +126,7 @@ install-dependencies:
{% else -%}
@python -m venv .venv
@. .venv/bin/activate && pip install -qU pip && pip install -qe .[dev]
{% endif -%}
{% endif %}

setup-environment-variables:
@if [ -d src/ragger ]; then \
Expand Down Expand Up @@ -173,6 +174,7 @@ add-repo-to-git:
freeze: ## Freeze dependencies
@. .venv/bin/activate && python src/scripts/freeze_dependencies.py
@echo "Updated dependencies in pyproject.toml."

{% endif -%}

docs: ## Generate documentation
Expand All @@ -196,7 +198,7 @@ test: ## Run tests
docker: ## Build Docker image and run container
{% if cookiecutter.dependency_manager == 'pip' -%}
@$(MAKE) --quiet freeze
{% endif -%}
{% endif %}
@docker build -t {{ cookiecutter.project_name }} .
@docker run -it --rm {{ cookiecutter.project_name }}

Expand Down

0 comments on commit 286f560

Please sign in to comment.