-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fixed PI/task instance caluclation #1089
Conversation
Looks like prettier isn't running. I assume @berndruecker created this PR from the browser. |
Yeah, it's frustrating to run into this. I'll spend some time investigating how to get the GitHub UI to run hooks. @berndruecker can you please run |
I wonder if it might be easier if some of you quickly run this? For me, it is not daily business to have the environment open and I would expect a higher lead time :-( That said - if this is the best process we want to follow, I can certainly make it work... |
Ì also wondered if we actually need prettyfier? What's the value of it? I simply changed two values in a table - why is that blocking the build? |
I will run this for this PR, though I want to make it clear that I am not interested in a workflow where "Steve will always run prettier for PRs opened through GitHub's UI." We have a contribution guide which states that code/docs must be formatted according to our standards -- I think it's important for all contributors to follow this. My preference is that if you (or any contributor) opens a PR, and the checks fail due to improper formatting, you (or any contributor) corrects the improper formatting, or explicitly requests that someone else correct it for them. This is maybe a minor detail but it's important to me, to avoid acquiring unwritten responsibilities of fixing a subset of PRs. Longer term -- it is not cool that anyone has to make this formatting commit. Bots should be doing this for us, as they're doing for every commit that isn't made through the GitHub UI. This is an irritating gap in our automation and I'd like to close it. Action Items from this comment
|
The reason we run prettier is to enforce formatting standards, which helps us avoid PRs that contain formatting changes due to (a) differences of opinion on what the formatting should look like, and (b) differences in tooling. For 99% of PRs, the configured pre-commit hook takes care of it for us by formatting the changes automatically. It's this 1% that happen through GitHub's UI that evade the auto-formatting -- as I state in my previous comment, this is a gap in our automation, and it'll be a pain until I can close it. More specifically, this PR failed because the formatting of the table doesn't match the rest of our code. The formatting of the table might not matter to you; it doesn't matter to me, to be honest...but the consistency across the codebase is important to me. It reduces time spent trying to figure out how I should format things and it reduces time spent reviewing PRs. |
Thanks @pepopowitz, for fixing the formatting! PS: I think I don't share the opinion about the importance of consistency in source files (that does not surface for the user) - but actually, I also don't have to ;-) I am just concerned if this wish for consistency affects user experience too much (which is not yet the case - as we do not get PR's of any people on a daily basis). |
I'm 100% in agreement with this. I see this current issue as a temporary bump in the road, which we will resolve with robots. I apologize for the inconvenience, and thank you for your patience until we get there. |
I do when I submit these kinds of PRs to projects, so we're out there 😅 |
No description provided.