Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

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