Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions CITATION.cff.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
5 changes: 5 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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