User Tools

Site Tools


codingstandard:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
codingstandard:index [2012-05-18 20:00]
macke
codingstandard:index [2013-03-14 22:59]
macke
Line 160: Line 160:
  
 ====== Coding standard for Python ====== ====== Coding standard for Python ======
-What ever works ;-)+We aim to follow [[http://www.python.org/dev/peps/pep-0008/|PEP-8]] and [[http://www.python.org/dev/peps/pep-0257/|PEP-257]] as much as possible. 
 + 
 +===== Documentation ===== 
 +For documentation doc strings are used. 
 + 
 +===== Static analysis ===== 
 +For static code analysis [[https://pypi.python.org/pypi/flake8|Flake8]] and [[http://www.logilab.org/857|pylint]] are used. For pylint the following exceptions has been made: 
 +  * These has been added to the list of good variables 
 +    * pk - used all over for variables that are CRTPPacket 
 +    * cf - used all over for variables that are Crazyflie 
 +    * logger - used all over as a file-global logger 
 +    * cb - used all over to describe an argument or variable that is a callback
codingstandard/index.txt · Last modified: 2021-06-24 16:35 by kimberly