-
Notifications
You must be signed in to change notification settings - Fork 55
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
Added 'sort' stage to CI. #392
base: master
Are you sure you want to change the base?
Conversation
aeb52d3
to
838c9d8
Compare
Do you still want bibtool installed in the docker image or do we leave this as is for now? |
I still think it's handy to have in the docker image and in the CI. We can also wait and see how the new feature is received by the community. So there is no hurry right now :-) |
/rebuild |
e77026a
to
6d8620e
Compare
Couldn't call So I tried to copy the instructions. |
86e7f3d
to
3d6d11b
Compare
254b976
to
514c4b9
Compare
I found a solution for the sort stage. Calling
I tried to copy the lines from Please have a look at this solution. I will squash the commits to one once approved. Alternatively, we could also setup a github-actions script for this. |
d325852
to
13b78e9
Compare
This is ready for review by the way. I will remove the last commit that checks the CI once approved. |
ping |
The problem is that it requires contributors to have installed |
For the library we do it in the same way with the indent checks, so you can apply the same arguments, too. Continous code maintenance. Detecting duplicates early. Users can check early if their entry is valid (i.e. missing commas). Keeping files readable, as entries are sorted in alphabetical order. Less conflicts in concurrent pull requests: in the past users added entries exclusively in the beginning or end of files, which required frequent rebasing.
The additional stage in the CI will issue a report and informs users on how they need to change their entries. So even when users can't run We can teach other users that management tools for bib(la)tex bibliographies like The price however is, and this applies also to the deal.II library itself, that such an indentation requirement adds additional steps for the user, of which installing the tool is the most tedious, but luckily it remains simple. This check does not need to have a 'required' flag, so we can potentially still merge it when the user fails to sort their entries. This way this CI stage could simply inform us that something is wrong in the publication list. We can also introduce it as an entirely separate stage in the CI, so that a misaligned bib file does not affect subsequent stages. @tjhei -- What do you think of this approach? I can update this PR accordingly. |
Let's see what others think -- opinions? |
Any opinions on the matter? |
Part of #389. Separated from #391.