Hi All,I've been doing some PEP8 work using autopep8. One problem that has turned up is that the default behavior of autopep8 is version dependent. I'd like to put a script in numpy tools that runs autopep8 with some features disabled, namely
- E226 -- puts spaces around arithmetic operators (+, -, *, /, **).
- E241 -- allows only single spaces after ','
The first leaves expression formatting in the hands of the coder and avoids things like "2 ** 3". The second allows array entries to be vertically aligned, which can be useful in clarifying the values used in tests. A few other things that might need decisions:
- [:,:, 2] or [:, :, 2]
- Blank line before first function after class Foo():