-
Notifications
You must be signed in to change notification settings - Fork 42
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 --check
CLI option similar to Black for CI usage
#186
Comments
I don't think it'd be useful for |
@nschloe the main use-case I have in mind would be to reject a PR if a bibliography file wasn't run through betterbib before a commit. What do you think? |
For sync it's not such a good idea because the online sources change once in a while which would suddenly break your tests. |
It's not a bug it's a feature 😂 Let's see if anyone else has a use for this feature request, otherwise I can implement the desired functionality with a diff as well. Thanks for the quick replies @nschloe |
Dirty hack for you @skilkis : |
@JensHeinrich that's a great suggestion! |
@nschloe thanks for the awesome package, I'm enjoying using it so far! A feature request would be to have a
--check
option similar to theblack
code formatter that results in a non-zero exit code ifbetterbib
were to make any changes. This would primarily be useful to use in CI services to check if the .bib file is up-to-date and has the right formatting.The text was updated successfully, but these errors were encountered: