Closed fredrik-bakke closed 1 year ago
Hi @fizruk @fredrik-bakke I've lost track of what's up with autoformating. Now whenever I merge something I'm getting an error message about autoformating failure. Can someone explain the current status?
Hi, the error can be safely ignored. The workflow is just not set up properly.
This pr makes it so other prs are blocked until they are properly formatted. The recommended procedure should then be for contributors to set up autoformatting in their ide. Given that you agree we should have this feature/rule of course.
Currently I think it is a good idea to wait until there are few other prs in the pipeline to merge this, so people aren't surprised by it and get weird merge conflicts.
Hi @fizruk @fredrik-bakke I've lost track of what's up with autoformating. Now whenever I merge something I'm getting an error message about autoformating failure. Can someone explain the current status?
main
branch`.main
(modifying the code), the workflow will now only check if formatting is correct and issue (which we can check for incoming PRs and ask contributors to apply autoformatting to the modified files before merging their changes).github/workflows/format.yml
file) until this PR is merged. But I think, this should just be merged soon.Note that here we only talk about formatting of config files and text in Markdown (including *.rzk.md
), but not Rzk code.
@fredrik-bakke can you please update/fix the formatting (I have updated the branch, and it needs some formatting now)?
@fredrik-bakke @emilyriehl I suggest that we merge this before #103 (which supersedes #100) and help @cesarbm03 with his PR in case of conflicts.
I'll be at my computer in a couple of hours. I can fix it then
Okay, this one should be ready for merging again now. Apologies if this has caused problems for anyone. In #94, I'm adding a remark to the documentation that we enforce autoformatting rules and that contributors should install an autoformatter.
Turns out it's not as easy as expected to set up invisible autoformatting. Thus, instead, this PR makes it so the workflow just blocks ill-formatted PRs. Contributors will then have to install an autoformatter (e.g. Prettier) locally to fix the issue.