Skip to content
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

Format all code with latest black version and config #5258

Closed
wants to merge 1 commit into from

Conversation

maffoo
Copy link
Contributor

@maffoo maffoo commented Apr 13, 2022

This formats all code files with the latest black version (see #5157) and options (see #5170). The main formatting difference from the version bump is to remove whitespace around the ** operator, which generally matches hand-written style and makes precedence more clear. The skip-magic-trailing-comma option makes formatting more deterministic and generally reduces vertical space (here we remove ~6000 lines altogether). Doing this in one commit ensures that logic changes to these modules will not be mixed in with formatting changes. Once this is merged we will add the commit hash to .git-blame-ignore-revs to ensure this doesn't obscure the history as seen by git blame.

@dabacon
Copy link
Collaborator

dabacon commented Apr 14, 2022

Did you check for matrix formatting? I have a PR in flight that keeps many of the matrix cases formatted in a more readable form.

@dabacon
Copy link
Collaborator

dabacon commented Apr 14, 2022

#5259 has matrix format preserving where I could find it. I wonder why we have different file counts?

@maffoo
Copy link
Contributor Author

maffoo commented Apr 14, 2022

I'm happy to close this and defer to #5259.

@maffoo
Copy link
Contributor Author

maffoo commented Apr 14, 2022

Closing in favor of #5259.

@maffoo maffoo closed this Apr 14, 2022
@maffoo maffoo deleted the u/maffoo/fmt branch April 14, 2022 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: XL lines changed >1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants