Skip to content

Add support for .cff (Citation File Format) extension as YAML#435

Closed
MattF-NSIDC wants to merge 1 commit intopre-commit:mainfrom
MattF-NSIDC:patch-1
Closed

Add support for .cff (Citation File Format) extension as YAML#435
MattF-NSIDC wants to merge 1 commit intopre-commit:mainfrom
MattF-NSIDC:patch-1

Conversation

@MattF-NSIDC
Copy link

Resolves #434

@asottile
Copy link
Member

asottile commented Dec 7, 2023

searching this extension leads to ambiguity so unfortunately it cannot be accepted

@asottile asottile closed this Dec 7, 2023
@MattF-NSIDC
Copy link
Author

Understandable!

For future searchers looking to do this: for my project it was not straightforward / I didn't know how / have time to figure out how to get pre-commit to run prettier on my CITATION.cff file without also running it on a bunch of other stuff I don't want it to, like Markdown, or having to maintain a regex to exclude all the other possibilities identified as "text".

I ended up using the cffconvert pre-commit hook which is designed specifically to validate this file. I decided to live without prettier 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Recognize Citation File Format (.cff) files as YAML

3 participants