Skip to content

Coding style

Thomas Kowaliczek-Schmer edited this page Oct 15, 2018 · 6 revisions

This page contains different style guides for the languages we use.

Python

PEP8 by Guido van Rossum is a good style guide: http://www.python.org/dev/peps/pep-0008/

We handle some things differently though:

  • Tabs only, no spaces.
  • Line length: We don't comply strictly with the 79 characters. Usually we try to stay around 90 columns per line.

When dealing with strings, please use PEP-3101 preferred '{foo}'.format(foo=foo) syntax instead of the binary '%s' % foo operator.

Commit messages

GitHub has a blog post about commit message guidelines, linking to this very helpful resource.

Clone this wiki locally