From patchwork Thu Jan 16 18:26:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dufresne X-Patchwork-Id: 2650 Return-Path: Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0008460705 for ; Thu, 16 Jan 2020 19:26:22 +0100 (CET) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2610:98:8005::127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nicolas) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 26C5E294522; Thu, 16 Jan 2020 18:26:22 +0000 (GMT) From: nicolas@ndufresne.ca To: libcamera-devel@lists.libcamera.org Cc: Nicolas Dufresne Date: Thu, 16 Jan 2020 13:26:01 -0500 Message-Id: <20200116182603.108966-1-nicolas@ndufresne.ca> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Add the ability to do pre-commit style check X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 18:26:23 -0000 From: Nicolas Dufresne This series adds the ability to do pre-commit style check. It is a series simply because pep8 tool has been renamed in 2016 and have moved to hard deprecation in 3.7, which prevented me to run the style check on Fedora 31. Nicolas Dufresne (2): checkstyle: Move from pep8 to pycodestyle checkstyle: Add support for pre-commit hook utils/checkstyle.py | 59 ++++++++++++++++++++++++++++-------------- utils/hooks/pre-commit | 16 ++++++++++++ 2 files changed, 56 insertions(+), 19 deletions(-) create mode 100755 utils/hooks/pre-commit