hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.
https://pypi.org/project/autopep8/
MIT License
4.56k stars 290 forks source link

Does not add whitespace around ** operator #381

Open tweakimp opened 6 years ago

tweakimp commented 6 years ago

Before autopep8 (aggressive mode)

1+2-3*4/5//6%7**8

After:

1 + 2 - 3 * 4 / 5 // 6 % 7**8

Expected outcome:

1 + 2 - 3 * 4 / 5 // 6 % 7 ** 8

python v3.6.4 pycodestyle v2.3.1 autopep8 v1.3.4

dangom commented 6 years ago

There is an interesting thread in SO discussing the issue.