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 b1b1a16 commit 920a47b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions {{cookiecutter.project_name}}/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ setup-environment-variables-non-interactive:
setup-git:
@git config --global init.defaultBranch main
@git init
@git config --local user.name ${GIT_NAME}
@git config --local user.email ${GIT_EMAIL}
{% if cookiecutter.open_source != 'y' -%}
@if [ ${GPG_KEY_ID} = "" ]; then \
echo "No GPG key ID specified. Skipping GPG signing."; \
Expand All @@ -155,8 +153,9 @@ setup-git:
git config --local user.signingkey ${GPG_KEY_ID}; \
echo "Signed with GPG key ID ${GPG_KEY_ID}."; \
fi

{% endif -%}
@git config --local user.name ${GIT_NAME}
@git config --local user.email ${GIT_EMAIL}

install-pre-commit: ## Install pre-commit hooks
@{{'poetry run ' if cookiecutter.dependency_manager != 'pip' else '. .venv/bin/activate && '}}pre-commit install
Expand Down

0 comments on commit 920a47b

Please sign in to comment.