-
Notifications
You must be signed in to change notification settings - Fork 370
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
Reformat the codebase and enable black check in CI #2750
Conversation
@heplesser @jougs If you could review the none-cake containing commits and merge this before merging any other Python-containing PRs then we have black in. Prominent changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Helveg Thank you for this PR. My main concern is that it reduces the line length to 80. While this is in line with PEP8, we have concluded that for C++ code we allow 120, because it makes code more readable. In the diff I noticed numerous lines that are now broken although just slightly over 80, not improving legibility. So I would strongly argue for using 120 also for Python code.
And could you elaborate on the SHAs? I don't quite understand what that is about.
Oh, I thought I had set the line length config to 120, I will double check! The SHA removes the commit from any |
@heplesser I force pushed a new attempt; the line length is now set in Small question: why are so many tool settings set in |
@Helveg History is probably the most plausible explanation. I don't think it was an explicit choice of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few questions concerning places where code had been hand-formatted for readability. I have not systematically searched for all such cases yet, would like your feedback first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@heplesser I am surprised? So we are fine with disrupting all the currently aligned comments in the codebase? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with this change, but did obviously not look at all the changes
No description provided.