Skip to contentSkip to conversation

doc: add pep8 as the python code style guidelines

PATCH Superseded John McNamara 1 participant 2 messages May 27, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: add pep8 as the python code style guidelines

Added PEP8 to the DPDK Coding Style guidelines to cover Python contributions to DPDK.

---
 doc/guides/contributing/coding_style.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
doc/guides/contributing/coding_style.rst +8 -0
index ad1392d..df64aad 100644
@@ -685,3 +685,11 @@ Control Statements
                  usage();
                  /* NOTREACHED */
          }
+
+
+Python Code
+~~~~~~~~~~~
+
+All python code should be compliant with `PEP8 (Style Guide for Python Code) <https://www.python.org/dev/peps/pep-0008/>`_.
+
+The `pep8` tool can be used for testing compliance with the guidelines.
Signature · 1 line
2.5.0
#1 lore raw
Quoted 21 lines

-----Original Message-----
From: Mcnamara, John
Sent: Friday, May 27, 2016 3:51 PM
To: [email protected]
Cc: Mcnamara, John <[email protected]>
Subject: [PATCH v1] doc: add pep8 as the python code style guidelines

Added PEP8 to the DPDK Coding Style guidelines to cover Python contributions to DPDK.

---
 doc/guides/contributing/coding_style.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
doc/guides/contributing/coding_style.rst +0 -0
index ad1392d..df64aad 100644

doc/guides/contributing/coding_style.rst Control Statements · line 691

Quoted 7 lines
doc/guides/contributing/coding_style.rst +4 -0
@@ -685,3 +685,11 @@ Control Statements
                  usage();
                  /* NOTREACHED */
          }
+
+
+Python Code
+~~~~~~~~~~~

Self-nack. Wrong section level.