spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-16992) Pep8 code style
Date Wed, 10 Aug 2016 11:06:20 GMT


Apache Spark reassigned SPARK-16992:

    Assignee: Apache Spark

> Pep8 code style
> ---------------
>                 Key: SPARK-16992
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Semet
>            Assignee: Apache Spark
> Add code style checks and auto formating into the Python code.
> Features:
> - add a {{.editconfig}} file (Spark's Scala files use 2-spaces indentation, while Python
files uses 4) for compatible editors (almost every editors has a plugin to support {{.editconfig}}
> - use autopep8 to fix basic pep8 mistakes
> - use isort to automatically sort and organise {{import}} statements and organise them
into logically linked order (see doc here. The most important thing is that it splits import
statements that loads more than one object into several lines. It send keep the imports sorted.
Said otherwise, for a given module import, the line where it should be added will be fixed.
This will increase the number of line of the file, but this facilitates a lot file maintainance
and file merges if needed.
> add a '' script in order to automatise the correction (need isort and autopep8
> You can see similar script in prod in the Buildbot project

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message