citation-file-format / cffconvert

Command line program to validate and convert CITATION.cff files.
Apache License 2.0
95 stars 28 forks source link

2.0.0 tag does not work with pre-commit #375

Open MattF-NSIDC opened 9 months ago

MattF-NSIDC commented 9 months ago

Following the docs, I'm able to set up a pre-commit hook using the exact YAML in the README, but I prefer to set rev: to a version number if possible. I saw that there is a 2.0.0 tag, so I tried it and got:

An error has occurred: InvalidManifestError: 
=====> /home/mfisher/.cache/pre-commit/repopeugw5dv/.pre-commit-hooks.yaml is not a file

Can a new release be cut which fixes this issue? Thanks!

jspaaks commented 7 months ago

Hi @MattF-NSIDC, thanks for taking the time to report this. Indeed this is due to the pre-commit functionality being unreleased. I'm planning to make a new release once we get Citation File Format 1.3.0 done (hopefully soon). Until that time, the workaround is to use the SHA instead of the tag as rev in your .pre-commit-config.yaml.