Skip to content

Commit

Permalink
CodingStyle: recommend PEP 8 for Python code
Browse files Browse the repository at this point in the history
Add a new section about Python code to the coding style document.
Suggest that all new Python code should adhere to the PEP 8 standard.
Also include a reference to tools that can quickly check code for
style issues.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
russellb authored and blp committed Feb 19, 2015
1 parent 53cc0a8 commit a59cf69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -139,6 +139,7 @@ Rob Adams readams@readams.net
Robert Åkerblom-Andersson Robert.nr1@gmail.com
Rob Hoes rob.hoes@citrix.com
Romain Lenglet romain.lenglet@berabera.info
Russell Bryant rbryant@redhat.com
Ryan Wilson wryan@nicira.com
Sajjad Lateef slateef@nicira.com
Samuel Ghinet sghinet@cloudbasesolutions.com
Expand Down
7 changes: 7 additions & 0 deletions CodingStyle.md
Expand Up @@ -569,3 +569,10 @@ for other compilers. You can, however, use C99 features or GCC
extensions also supported by Clang in code that compiles only on
GNU/Linux (such as lib/netdev-linux.c), because GCC is the system
compiler there.

## PYTHON

When introducing new Python code, try to follow Python's
[PEP 8](http://www.python.org/dev/peps/pep-0008/) style.
Consider running the `pep8` or `flake8` tool against your
code to find issues.

0 comments on commit a59cf69

Please sign in to comment.