diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eae37d0..0b2f853 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: yamllint exclude: pre-commit-config.yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.11.11" + rev: "v0.11.13" hooks: - id: ruff-format - id: ruff-check diff --git a/CITATION.cff.jinja b/CITATION.cff.jinja index 8066bba..05d889c 100644 --- a/CITATION.cff.jinja +++ b/CITATION.cff.jinja @@ -8,9 +8,9 @@ message: >- metadata from the CITATION.cff file. type: software authors: - {% set author_name_split = author_name.split(' ') %} - {% set author_given_name = author_name_split[0] %} - {% set author_last_name = author_name_split[1] if author_name_split | length > 1 else '' %} +{% set author_name_split = author_name.split(' ') %} +{% set author_given_name = author_name_split[0] %} +{% set author_last_name = author_name_split[1] if author_name_split | length > 1 else '' %} - given-names: {{ author_given_name }} family-names: {{ author_last_name }} orcid: "{{ author_orcid }}" diff --git a/copier.yaml b/copier.yaml index 38283b6..fdcb170 100644 --- a/copier.yaml +++ b/copier.yaml @@ -41,3 +41,8 @@ _exclude: - copier.yaml - tests/test_template.py - .github/workflows/test-template.yml + +_envops: + # Jinja settings to remove whitespace + lstrip_blocks: true + trim_blocks: true