Skip to content

Format all code with latest black version and config#5258

Closed
maffoo wants to merge 1 commit intomasterfrom
u/maffoo/fmt
Closed

Format all code with latest black version and config#5258
maffoo wants to merge 1 commit intomasterfrom
u/maffoo/fmt

Conversation

@maffoo
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

maffoo commented Apr 14, 2022

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

@maffoo
Copy link
Copy Markdown
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