The whitespace handling in PEP 8 is a little different. Two cases stand out to me as unhandled.
Current:
foo() # This is a comment.
Desired:
bar() # This is a comment.
def foo(): pass def bar(): pass
One more: Missing whitespace at the end of single-item tuples:
Input (desired):
example = ("foo", )
Output:
example = ("foo",)
Edit: Nevermind, I remembered pep8 wrong.
Found another: missing spaces after commas in class parents:
class MyClass(type1, type2): pass
class MyClass(type1,type2): pass
PEP 8 explicitly enjoins against the space between the comma and the closing paren on single-element tuples: https://www.python.org/dev/peps/pep-0008/#pet-peeves
This is one of many inane YAPF-isms.
Huh, okay, never noticed that since flake8 doesn't complain about it. Nevermind that one then.
Activity
jleclanche commented on Mar 16, 2018
One more: Missing whitespace at the end of single-item tuples:
Input (desired):
Output:
Edit: Nevermind, I remembered pep8 wrong.
jleclanche commented on Mar 16, 2018
Found another: missing spaces after commas in class parents:
Input (desired):
Output:
taion commented on Mar 16, 2018
PEP 8 explicitly enjoins against the space between the comma and the closing paren on single-element tuples: https://www.python.org/dev/peps/pep-0008/#pet-peeves
This is one of many inane YAPF-isms.
jleclanche commented on Mar 16, 2018
Huh, okay, never noticed that since flake8 doesn't complain about it. Nevermind that one then.