You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For discussion only right now: some of this a like, some I don't like. In general with a large body of work like PIL, it may be nice to perform a one-time format of all code with yapf to create a "clean slate" effect, then fix annoyances created by the formatted code.
The idea is also similar to the 'gofmt' tool for the Go programming language: end all holy wars about formatting - if the whole code base of a project is simply piped through YAPF whenever modifications are made, the style remains consistent throughout the project and there's no point arguing about style in every code review.
If yapf can be configured to our liking, we can do this.
Meh, some of the changes are decent, some are horrible. Oddly enough, some classes of transforms manage to hit both of those in various places in the code. (e.g. deep data structures and exception strings)
Don't do anything to OleFileIO, unless it goes upstream first
Gofmt is from a different culture and is part of genesis of the language. Python is from a different culture. Guido has said a few times that things like pep8 are more guidelines than rules.
@wiredfool I'll configure to taste at some point, using their configuration options. Can we talk you into it if we allow post-formatting fixes to any annoyances that remain?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
And amazingly all tests pass! https://github.com/google/yapf