schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00411
Pep-8
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