{"id":2650,"url":"https://patchwork.libcamera.org/api/1.1/covers/2650/?format=json","web_url":"https://patchwork.libcamera.org/cover/2650/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200116182603.108966-1-nicolas@ndufresne.ca>","date":"2020-01-16T18:26:01","name":"[libcamera-devel,0/2] Add the ability to do pre-commit style check","submitter":{"id":30,"url":"https://patchwork.libcamera.org/api/1.1/people/30/?format=json","name":"Nicolas Dufresne","email":"nicolas@ndufresne.ca"},"mbox":"https://patchwork.libcamera.org/cover/2650/mbox/","series":[{"id":628,"url":"https://patchwork.libcamera.org/api/1.1/series/628/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=628","date":"2020-01-16T18:26:01","name":"Add the ability to do pre-commit style check","version":1,"mbox":"https://patchwork.libcamera.org/series/628/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2650/comments/","headers":{"Return-Path":"<nicolas@ndufresne.ca>","Received":["from bhuna.collabora.co.uk (bhuna.collabora.co.uk\n\t[IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0008460705\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 16 Jan 2020 19:26:22 +0100 (CET)","from nicolas-tpx395.localdomain (unknown [IPv6:2610:98:8005::127])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits))\n\t(No client certificate requested) (Authenticated sender: nicolas)\n\tby bhuna.collabora.co.uk (Postfix) with ESMTPSA id 26C5E294522;\n\tThu, 16 Jan 2020 18:26:22 +0000 (GMT)"],"From":"nicolas@ndufresne.ca","To":"libcamera-devel@lists.libcamera.org","Cc":"Nicolas Dufresne <nicolas.dufresne@collabora.com>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/2] Add the ability to do pre-commit\n\tstyle check","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Thu, 16 Jan 2020 18:26:23 -0000"},"content":"From: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n\nThis series adds the ability to do pre-commit style check. It is a series simply\nbecause pep8 tool has been renamed in 2016 and have moved to hard deprecation in\n3.7, which prevented me to run the style check on Fedora 31.\n\nNicolas Dufresne (2):\n  checkstyle: Move from pep8 to pycodestyle\n  checkstyle: Add support for pre-commit hook\n\n utils/checkstyle.py    | 59 ++++++++++++++++++++++++++++--------------\n utils/hooks/pre-commit | 16 ++++++++++++\n 2 files changed, 56 insertions(+), 19 deletions(-)\n create mode 100755 utils/hooks/pre-commit"}