tidypython didn't just break all the code (including simplejson and markdown) but deletes docstrings and afterward it does not pass the pep8.py validation any better.
Massimo On Feb 2, 9:10 am, Timothy Farrell <[email protected]> wrote: > http://svn.browsershots.org/trunk/devtools/pep8/pep8.pyhttp://www.logilab.org/857 (pyLint)http://lacusveris.com/PythonTidy/PythonTidy.python > > ...just to name a few. I've used PythonTidy in the past and it worked > annoyingly well. I would probably recommend that or pylint over pep8.py > > > > mdipierro wrote: > > Is there any code that fix compliance? > > > On Feb 2, 7:50 am, Markus Gritsch <[email protected]> wrote: > > >> Hi, > > >> IMO web2py should follow the python style guide [1] at least in the > >> example code snippets and in the generated scaffolding code. Ideally > >> in the gluon sources too. > > >> In particular for Python code it looks quite uncommon to omit the > >> space after a colon and to have no spaces around operators. e.g. > > >> r=f(a,b,c)+g(d,e) > > >> should read > > >> r = f(a, b, c) + g(d, e) > > >> PEP 8 is quite explicit about this in the "Whitespace in Expressions > >> and Statements" section. > > >> [1]http://www.python.org/dev/peps/pep-0008/ > > -- > Timothy Farrell <[email protected]> > Computer Guy > Statewide General Insurance Agency (www.swgen.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

