From ba41b0e10a6551259dc465ebcdac232a2acdb257 Mon Sep 17 00:00:00 2001 From: d33bs Date: Wed, 11 Jun 2025 16:01:13 -0600 Subject: [PATCH 1/2] configuration update update Update CITATION.cff.jinja --- CITATION.cff.jinja | 6 +++--- copier.yaml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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..f149785 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 \ No newline at end of file From b14e90d6190944f34447b05ba9206c120d65d34e Mon Sep 17 00:00:00 2001 From: d33bs Date: Thu, 12 Jun 2025 10:47:41 -0600 Subject: [PATCH 2/2] linting --- .pre-commit-config.yaml | 2 +- copier.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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/copier.yaml b/copier.yaml index f149785..fdcb170 100644 --- a/copier.yaml +++ b/copier.yaml @@ -41,8 +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 \ No newline at end of file + trim_blocks: true