Bill Wendling

Results 83 comments of Bill Wendling

I'm sorry to get to this so late. Could you update the CHANGELOG please? Also, please add a test case derived from the original issue.

I would prefer the testcase just so we have a concrete example of what we're fixing, so that if something goes wrong we won't mess it up.

YAPF tries to keep tightly-bound regions together. In this case, it sees the `if - then - else` bit as being more tightly bound. This is arguably wrong,...

@MrYann You can add a bug report here: http://bugs.python.org/

I find their reasoning to be a bit disingenuous. They should certainly know that the lib2to3 parser is used outside of the 2to3 utility. Besides, if a Python file is...

For the lines between the class docstring and the first method, set `BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = True`. It's off by default for PEP8. The array subscript thing is concerning.

The '*', '/', '@', and '//' operators are taken care of in `Visit_term`.

YAPF is meant to reformat code, and to do it as "safely" as possible . I realize that people want it to sort imports (a *very* common request) and/or add/remove...

This is possible. I'll mark it as an "enhancement". Thanks!

Adding the knobs shouldn't be too hard. I'll bump up the priority here.