-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove code formatting test #54
Conversation
My suggestion is the following.
As far as I understand it will not bother contributors while working on the PR, but it will create separate PRs that fix the format. |
I like that idea! It encourages contributions from people who aren't fluent in developer tools, but also makes it easy for us to improve the formatting. |
But I'm a notice at GitHub workflows, so the only way I know to test things is to merge them, and it often takes me several iterations to get them to work right. So I'd suggest that you two can review each other on this one and decide when to merge. |
I'm not a fan of this. It's basically guaranteed to double the length of the commit history by adding a formatting PR after every commit. If we don't enforce code formatting, we might just as well add a manual formatting commit every so often. If the formatting test is an issue in this repo, it is an issue everywhere, so I've opened domluna/JuliaFormatter.jl#871 to discuss it. If it gets addressed, we can add the test back in here. |
Good point. Updated proposal: Do 1. & 2. from above. |
I'm not sure what is gained from (2). If it's a test we don't enforce, why are we testing for it in the first place? It will just put red cross ❌ of CI failure on the main page of the repository, which doesn't signal good development practices to potential users. |
The action supposedly provides easy-to-use feedback for all contributors with write access. So at least these contributions will make use of the feedback which leads to a green check. |
would you mind adding a commit with bad formatting in this PR - just to see how the feedback of |
Why do we care about the length of the commit history? |
I actually prefer the workflow of accepting contributions (that don't break anything important) even if their formatting doesn't match the pattern. Then someone who is more fluent with the latest software development tools can occassionaly submit a PR that's purely formating. More contributors. Faster merging. |
Are all three of us happy merging this PR in? |
A neat commit history can function as a change log.
I fully agree with this. 👍 |
Adresses #48 (comment) and #53.