<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 30, 2018 at 4:46 PM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Nov 30, 2018 at 10:04 PM Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>> wrote:<br>
><br>
> Hi devs,<br>
><br>
> in several Python scripts tabs and spaces are mixed which is a problem.<br>
><br>
> Questions:<br>
> - how to find these problems: with pylint, recursively?<br>
<br>
Here an (overly) simple approach:<br>
<br>
for i in $(ag --python -l) ; do pylint-3 --errors-only $i | grep<br>
'inconsistent use of tabs and spaces in indentation' && echo $i ; done<br>
E:161, 0: inconsistent use of tabs and spaces in indentation<br>
(<string>, line 161) (syntax-error)<br>
scripts/v.rast.stats/<a href="http://v.rast.stats.py" rel="noreferrer" target="_blank">v.rast.stats.py</a><br>
E: 40, 0: inconsistent use of tabs and spaces in indentation<br>
(<string>, line 40) (syntax-error)<br>
raster/r.reclass/testsuite/test_r_reclass.py<br>
<br>
(the first has just been fixed by Anna)<br>
<br></blockquote><div><br></div><div>Just a note, I found it when compiling with Python 3, that was the only one which failed.</div><div><br></div><div>Anna</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> - how to avoid them? Perhaps we collect the respective editor settings<br>
> in a Wiki page?<br>
<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a></blockquote></div></div>