Install using tox:
tox -e check-hooks
ref: https://pre-commit.com
Change-Id: Ie060a9d1c843ce3889df10535d0a87e41d4b4e76
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
--- /dev/null
+---
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v1.3.0
+ hooks:
+ - id: trailing-whitespace
[tox]
minversion = 1.6
-envlist = coala,jjb,jjb-compare-xml,license
+envlist = check-hooks,coala,jjb,jjb-compare-xml,license
skipsdist = true
+[testenv:check-hooks]
+deps = pre-commit
+commands =
+ pre-commit install
+ pre-commit run --all-files
+
[testenv:coala]
basepython = python3
deps =