PyCharm Auto-formatting of chained methods violates PEP8 rule E131

When trying to split chained method calls across multiple lines, the result of pycharms auto-formatting ends up violating pep8 (and pycharm even reports the pep8 violation)

Example result of auto-formatting:

results = data_store.query(
data_store.Query()
.for_id(123)
)

 

Desired auto-format (satisfies pep8):

results = self.data_store.query(
data_store.Query()
.for_id(123)
)

 

19

Please sign in to leave a comment.