I have the Reformat Code option on among Actions on Save for *.py files. But Pycharm is inserting spaces before colons in dictionary definitions, then complaining PEP8 violation (E203). Here is a screenshot.
and here is the error message.
PEP 8: E203 whitespace before ':'
Any idea why this is happening and what settings should I change to avoid this conflicting behaviour?