Main > Reference Manual > Information for developers > Style guide

To enforce the same formatting of the C++ source code the astyle tool is used.
The following formatting options are used:

   --style=ansi 
   --indent=spaces=2 
   --indent-classes 
   --indent-switches 
   --min-conditional-indent=2 
   --keep-one-line-statements 
   --keep-one-line-blocks 
   --max-instatement-indent=2 
   --convert-tabs

Python code follows the style guidelines from PEP-8, except:

  • 2-space indent instead of 4-space.
  • Mixed case for class, method and function names, instead of lower_case_with_underscores.