[libcamera-devel,0/2] Add the ability to do pre-commit style check
mbox series

Message ID 20200116182603.108966-1-nicolas@ndufresne.ca
Headers show
Series
  • Add the ability to do pre-commit style check
Related show

Message

Nicolas Dufresne Jan. 16, 2020, 6:26 p.m. UTC
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>

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