X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fcontributing%2Fcoding_style.rst;h=1eb67f34760585cde4947031f597c2d8186fb3af;hb=4b5062755aa74517ed1d7bd6829b7e9f28b801d8;hp=22f26dd9355dd60056c2a5610120669084ed4237;hpb=6bdae907647691fe2f380efcd281cc276fafb3d0;p=dpdk.git diff --git a/doc/guides/contributing/coding_style.rst b/doc/guides/contributing/coding_style.rst index 22f26dd935..1eb67f3476 100644 --- a/doc/guides/contributing/coding_style.rst +++ b/doc/guides/contributing/coding_style.rst @@ -461,7 +461,7 @@ Local Variables * When declaring variables in functions, multiple variables per line are OK. However, if multiple declarations would cause the line to exceed a reasonable line length, begin a new set of declarations on the next line rather than using a line continuation. * Be careful to not obfuscate the code by initializing variables in the declarations, only the last variable on a line should be initialized. - If multiple variables are to be initialised when defined, put one per line. + If multiple variables are to be initialized when defined, put one per line. * Do not use function calls in initializers, except for ``const`` variables. .. code-block:: c @@ -685,3 +685,11 @@ Control Statements usage(); /* NOTREACHED */ } + + +Python Code +----------- + +All python code should be compliant with `PEP8 (Style Guide for Python Code) `_. + +The ``pep8`` tool can be used for testing compliance with the guidelines.