Autopep8 doesn't insert spaces around arithmetic operators


#1

I’ve installed autopep8, and it works for most of the cases, however, it does not insert missing whitespace around arithmetic operator. if the input is:
A=B+C
it will change that to:
A = B+C
not
A = B + C
although the autopep8 documentation says that it should do that.


#2

Apparently, this is not a bug, the pep8 style leaves spaces around arithmetic operators to your own judgement.

https://hg.python.org/peps/rev/37af28ad2972


#3

Didn’t know it. I love Python, however, choices like this one do not really scream readability out loud.


#4

YAPF formats it to A = B + C


#5

What about black?


#6

don’t know it.

the package combination of

atom-ide-ui
and
ide-python

allows me to switch between autopep8 and yapf.