Pycharm formatter for python
Python is less configurable than java.
Here my current modifications against the default configuration to have a quite good formatting:
A very important setting is the line wrapping. Without that, we may have some IDE errors with
strings declared on multiple lines.
We can see that the right margin is in fact the hardp wrap configuration:
About line of wrapping and soft line of wrapping especially, we may need to activate the on-fly word wrapping :