Table Of Contents

Previous topic

Developers’ Guide

Next topic

BladeDesinger One-On-One: Fundamentals

This Page

Coding guide

Style guide

Our coding guidelines bases upon the standard coding guidelines for python written by Guido in PEP 8.

The following paragraphs are some extentions.

Spacing, and formatting conventions

The PEP 8 strongly recommends spaces, hence we use spaces instead of hard tabs. The standard indentation unit is always four spaces; if there is a file with tabs or a different number of spaces it is a bug – please fix it.

Limit all lines to a maximum of 79 characters. If a logical line needs to be longer, use parentheses to break it; do not use an escaped newline. It may be preferable to use a temporary variable to replace a single long line with two shorter and more readable lines

Please do not commit lines with trailing white space, as it causes noise in git diffs.