How to format code following pep8?


In the past "Reformat Code" and `autopep8` resulted in the same format, but since a few weeks that is not the case anymore. I have not changed any settings, so I assume a default setting or the formatting implementation was changed. Differences are for example:

Pycharm:

    def fulfill_additional_network_invoice_requirements(self):
        return (self.person.attended_new_tenant_bar() or not self.missed_new_tenant_bar_too_often()) and \
                self.did_social_service_in_previous_social_service_period()

vs autopep8:

    def fulfill_additional_network_invoice_requirements(self):
        return (self.person.attended_new_tenant_bar() or not self.missed_new_tenant_bar_too_often()) and \
           self.did_social_service_in_previous_social_service_period()

Does anybody know what I have to change to restore the old behavior?

1 comment
Comment actions Permalink

Hi, 

I haven't found a way to configure this, and submitted an issue https://youtrack.jetbrains.com/issue/PY-52514

0

Please sign in to leave a comment.