PySpark long instructions style #1816
Labels
F: linebreak
How should we split up lines?
R: duplicate
This issue or pull request already exists
T: style
What do we want Blackened code to look like?
Describe the style change
It is frequent to use long instructions for PySpark chained with the dot operator. The official Apache Spark tutorials on how to use PySpark suggest using
\
to break the statement. The current style splits the statement simply to avoid crossing the char columns limit and doesn't consider readability. By splitting the statement at the dot operators this could be better.Examples in the current Black style
Desired style
Should follow the Apache Spark code style
Or maybe if not using
\
to split the linesAdditional context
The text was updated successfully, but these errors were encountered: