Our current Python coding standard is to break long lines at a binary operator by having the binary operator at the end of the line. I propose to change this, for two reasons:
- The puts a critical piece of information (the binary operator) first, where it is easy to see and not lost in a sea of text.
- It matches what "black" does. So if we start formatting any of our packages with "black" the results will look familiar. (see
My proposed means of adoption is:
- Change one package at a time, as time permits and people have inclination.
- Change a package by first changing setup.cfg to suppress W503 instead of W504 (they are complementary), then fixing any flake8 warnings.
I believe that continuation lines are rare enough and that existing code is readable enough, that there is no rush on making this change. I envision it as something someone might choose to do if one is already editing a package.