Format project using Air#291
Conversation
|
In general I'm in favor of something like this. My only concern is that in their GitHub readme they say:
So it seems like it's not stable yet. If they're still making changes to the formatting results will we need to reformat the entire project every time they do that? If we don't then won't PRs that get auto-formatted using their changes be formatted differently than the rest of the project? |
|
(Oops accidentally closed the PR, I meant to leave it open to continue the discussion. Reopening now.) |
|
I think formatting is simple enough to add/maintain and low-risk enough that breaking changes don't matter as much--worst case one could just remove the action and there's no cost. I think the action reformats the entire project |
|
Sorry I think I wasn't clear about my concerns. Here's hopefully a better summary of what makes me a bit concerned to use this while it's in beta (and the entire project may be reformatted multiple times). All of these issues are less of a problem if the formatting rules are stable, so I definitely think this is a good idea at some point. Here's why I'm hesitant while it's in beta:
Of course they may not make many changes to the formatting rules while in beta, but it's hard to know and they do say to expect changes. |
|
Ah that makes sense, thank you for clarifying. I didn't think of the diff clutter, but now that you mention it, that does seem quite distracting and not worth it for now. Do you think it'd make sense to push off formatting PRs till Air is stable, but format the entire project on every release? This would have the problem that you mentioned of odd formatting in between releases though. Or do you think it makes more sense to just wait till Air is stable before using it at all? |
|
I would lean towards waiting until it's stable to use it, but I'll think more about it. And maybe they will do a 1.0 release soon. We can definitely leave this PR open in the meantime. Or maybe convert it to a draft PR if it's possible to convert after opening it (or close and reopen as a draft). I definitely think this would be a good thing to do when it's ready. |
46992a0 to
00a2855
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #291 +/- ##
=======================================
Coverage 92.70% 92.70%
=======================================
Files 31 31
Lines 3029 3029
=======================================
Hits 2808 2808
Misses 221 221 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 2dc832f is merged into master:
|
Use Posit's new opinionated formatter, Air to review pull requests to ensure they conform to the style as well as format the entire project once.
What do you think? @jgabry @avehtari