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

Blacken src/pip/_internal/commands/ #10192

Merged
merged 6 commits into from
Aug 6, 2021
Merged

Conversation

pradyunsg
Copy link
Member

Progresses #8543 further.

Progresses the black formatting of the codebase further.
In Python 3.6+, `dict` is ordered now and we can use that.
This is suboptimal behaviour in black that'll hopefully get fixed in the
near future.
Black seems to still get confused about where it should break up
multi-part if statements.
This looks better IMO.
This is singlehandedly the most satisfying part of all the
formatting efforts.
@pradyunsg pradyunsg added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jul 23, 2021
@pradyunsg
Copy link
Member Author

This PR encapsulates how I feel about black: the consistency is amazing. Some of the choices are ones I can grow into. And, on a fairly low frequency, it will definitely make me go "hmm... no". :)

@pradyunsg
Copy link
Member Author

FYI: These PRs are easiest to review on a side-by-side diff.

@pradyunsg
Copy link
Member Author

I'm gonna be optimistic and say that there's no concerns with this specific PR, which is why it's got no comments. 😉

Merging, since reverts are cheap!

@pradyunsg pradyunsg merged commit 5ab7c12 into pypa:main Aug 6, 2021
@pradyunsg pradyunsg deleted the blacken/commands branch August 6, 2021 09:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant