Re: [gdal-dev] PEP8 compliance for Python code

2018-04-10 Thread Ben Elliston
On 10/04/18 19:05, Even Rouault wrote: > Apparently autopep8 can fix most of issues, except line too longs ? I think that's right. I would not plan to touch long lines. The worst of them can be fixed over time when other edits are taking place. > I guess your plans do not cover the SWIG generate

Re: [gdal-dev] PEP8 compliance for Python code

2018-04-10 Thread Even Rouault
Ben, Thanks for leading this. Apparently autopep8 can fix most of issues, except line too longs ? Do you plan to fix even that ? That could be quite painful now, and in the future, as in the testing code, you compare things like WKT strings that can be long, and that would be a burden to make su

[gdal-dev] PEP8 compliance for Python code

2018-04-09 Thread Ben Elliston
The Python code in the GDAL tree covers a few things including the testsuite and a Python module for GDAL itself. There is quite a lot of this code and the coding conventions are a bit all over the place. There are several deprecated idioms still being used. I think we should settle on the Python