[PATCH docs 1/3] contributing: specify Python style

OpenBMC Patches 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
--- a/contributing.md
+++ b/contributing.md
@@ -42,7 +42,18 @@ If you need further details on any of these issues, feel free to add comments.
 Coding style
 ------------
 
-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
+
+Python source should all conform to PEP8.  This style is well established
+within the Python community and can be verified with the 'pep8' tool.
+
+https://www.python.org/dev/peps/pep-0008/
+
+### C
 
 For C code, we typically use the Linux coding style, which is documented at:
 
-- 
2.9.0




More information about the openbmc mailing list