[SciPy-Dev] PEP8 conformance

Warren Weckesser warren.weckesser at gmail.com
Mon May 6 20:13:14 EDT 2013


On 5/6/13, Tim Leslie <tim.leslie at gmail.com> wrote:
> Hi All,
>
> We've just merged a couple of pull requests which greatly improve the
> conformance of the scipy code to the pep8 style guidelines:
>
> http://www.python.org/dev/peps/pep-0008/
>
> In order to maintain consistency of code, I would like to recommend that
> before developers commit (or before they submit a PR) they run the "pep8"
> script over the code to make sure no errors are flagged.
>
> The pep8 script can be found here:
>
> https://github.com/jcrocholl/pep8
>
> The file tox.ini has been updated to contain a [pep8] section, which
> contains the current configuration for scipy. In particular, it lists
> certain error codes which we currently ignore, and automatically generated
> python files, which we also ignore.
>
> NOTE: The latest stable release of pep8 (1.4.5) has a bug which breaks the
> ignore-file functionality. If you use this version you can expect to see a
> bunch of errors from the files in sparsetools. The current master branch of
> pep8 on github has this issue fixed, so it is recommended to use this
> version.
>
> If everything is correctly installed and there are no pep8 errors you
> should see the following behaviour:
>
> ~/src/scipy$ pep8 scipy
> ~/src/scipy$
>
> Cheers,
>
> Tim
>


Great work, Tim, thanks!

Warren



More information about the SciPy-Dev mailing list