Install using tox:
tox -e check-hooks
ref: https://pre-commit.com
Change-Id: I9e1716a486ae027cd9eb35b415ee700ad0bc60d9
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
+envlist =
+ check-hooks,
+ coala
skipsdist = true
+[testenv:check-hooks]
+deps = pre-commit
+commands =
+ pre-commit install
+ pre-commit run --all-files
+
[testenv:coala]
basepython = python3
deps =