Skip to contentSkip to conversation

doc: add pep8 as the python code style guidelines

PATCH Applied John McNamara 3 participants 3 messages May 27, 2016 – Jun 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
v2: fixed section level.

 doc/guides/contributing/coding_style.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
doc/guides/contributing/coding_style.rst +8 -0
index ad1392d..1eb67f3 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
Acked-by on v2 1/1
#1 lore raw
Quoted 18 lines · John McNamara

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

---
v2: fixed section level.

 doc/guides/contributing/coding_style.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
doc/guides/contributing/coding_style.rst +0 -0
index ad1392d..1eb67f3 100644
@@ -685,3 +685,11 @@ Control Statements
                  usage();

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

Quoted 10 lines
doc/guides/contributing/coding_style.rst +8 -0
                  /* 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.

Yep, I think this would be good to have, especially since there is a nice public tool to help ensure people are compliant with this. Even though all existing code is not (yet) compliant no reason new code shouldn't be.