Skip to content

Coding guidlines

gista edited this page Oct 4, 2011 · 7 revisions

Coding in Python

  • Intedation: tabs (8 spaces)
  • Class names: 'FooBar?' (with exception on Django models, where we use 'Foo_bar')
  • Method and variable names: 'foo_bar', one or two underscores '_foo_bar' - (see http://www.python.org/dev/peps/pep-0008/)
  • Use Pylint to check Your code before each commit

Commiting

  • Begin Your commit message with asterisk (*)
  • When commiting changes to Django models begin commit message with '* [MODEL]'
  • When commiting changes to Django settings begin commit message with '* [SETTING]'
  • When Your commit is closing ticket, use 'fix #ticket_number' in commit message

Core software versions

  • Python - 2.6
  • Django - 1.3
  • ExtJS - 3.4.x
  • GeoExt - 1.0

Libraries

Clone this wiki locally