diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-07-20 15:58:23 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-07-20 15:58:23 -0500 |
commit | 460e99d3e79b8b2ad8150cdb14c088a741d7a099 (patch) | |
tree | dc7587d63c13720955281d7bddc7300ab32e9e7a | |
parent | b065d2c15a5cd0a2e3e320c176fc19e3b9aabd51 (diff) | |
download | openbmc-docs-460e99d3e79b8b2ad8150cdb14c088a741d7a099.tar.gz openbmc-docs-460e99d3e79b8b2ad8150cdb14c088a741d7a099.zip |
contributing: specify Python style
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r-- | contributing.md | 13 |
1 files changed, 12 insertions, 1 deletions
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: |