[PATCH docs 1/3] contributing: specify Python style
openbmc-patches at stwcx.xyz
Thu Jul 21 08:30:14 AEST 2016
From: Patrick Williams <patrick at stwcx.xyz>
Signed-off-by: Patrick Williams <patrick at stwcx.xyz>
contributing.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/contributing.md b/contributing.md
index db485a0..674dcee 100644
@@ -42,7 +42,18 @@ If you need further details on any of these issues, feel free to add comments.
-Components of the OpenBMC sources should have consistent style.
+Components of the OpenBMC sources should have consistent style. If source is
+coming from another project, we choose to follow the existing style of the
+upstream project. Otherwise, conventions are chosen based on the language.
+Python source should all conform to PEP8. This style is well established
+within the Python community and can be verified with the 'pep8' tool.
For C code, we typically use the Linux coding style, which is documented at:
More information about the openbmc