From patchwork Fri May 27 14:50:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John McNamara X-Patchwork-Id: 13050 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4EE5F5A5C; Fri, 27 May 2016 16:50:47 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E310F2C45 for ; Fri, 27 May 2016 16:50:45 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 27 May 2016 07:50:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,374,1459839600"; d="scan'208";a="816133089" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 27 May 2016 07:50:43 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u4REohH9029102; Fri, 27 May 2016 15:50:43 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u4REohpC002952; Fri, 27 May 2016 15:50:43 +0100 Received: (from jmcnam2@localhost) by sivswdev02.ir.intel.com with id u4REogJo002948; Fri, 27 May 2016 15:50:42 +0100 From: John McNamara To: dev@dpdk.org Cc: John McNamara Date: Fri, 27 May 2016 15:50:42 +0100 Message-Id: <1464360642-2695-1-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH v1] doc: add pep8 as the python code style guidelines X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added PEP8 to the DPDK Coding Style guidelines to cover Python contributions to DPDK. Signed-off-by: John McNamara --- doc/guides/contributing/coding_style.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/guides/contributing/coding_style.rst b/doc/guides/contributing/coding_style.rst index ad1392d..df64aad 100644 --- a/doc/guides/contributing/coding_style.rst +++ b/doc/guides/contributing/coding_style.rst @@ -685,3 +685,11 @@ Control Statements usage(); /* NOTREACHED */ } + + +Python Code +~~~~~~~~~~~ + +All python code should be compliant with `PEP8 (Style Guide for Python Code) `_. + +The `pep8` tool can be used for testing compliance with the guidelines.