Hi,

All of you probably read the Style Guide for Python code: http://www.python.org/dev/peps/pep-0008/

  If you wonder if your code is according to guidelines, you can always

  $ sudo apt-get install pep8

  $ pep8 --show-source /src/schooltool/somemodule/somefile.py

  Or for whole directory:

  $ pep8 --stat /src/schooltool/somemodule/

  Some interesting options:

  --statistics          count errors and warnings
--select=errors select errors and warnings (e.g. --select=E,W6 or --select=E302)
  --show-pep8          show text of PEP 8 for each error

Cheers,
Justas



_______________________________________________
Mailing list: https://launchpad.net/~schooltool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~schooltool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to