From 460e99d3e79b8b2ad8150cdb14c088a741d7a099 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 20 Jul 2016 15:58:23 -0500 Subject: contributing: specify Python style Signed-off-by: Patrick Williams --- 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: -- cgit v1.2.1