From c7ac7968bc75ddf3590acbd21ebfdfdcdfb722aa Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 05:05:13 +1000 Subject: [PATCH] [CI] Add pre-commit hook to validate the CITATION file --- .pre-commit-config.yaml | 7 +++++++ CITATION.cff | 1 + 2 files changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b9ed73b81..b641215c0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -168,3 +168,10 @@ repos: name: run editorconfig-checker description: a tool to verify that your files are in harmony with your .editorconfig alias: ec + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.37.2 + hooks: + - id: check-citation-file-format + name: run check-citation-file-format + description: validate citation file format + files: ^CITATION\.cff$ diff --git a/CITATION.cff b/CITATION.cff index 8a94a6ec9e..4c3a8ead95 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -16,6 +16,7 @@ # under the License. cff-version: 1.2.0 +message: If you use this software, please cite it as below. title: Apache Shiro type: software authors: