Add pre-commit hook for trailing-whitespace
[releng/global-jjb.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 2d4d91e..c5578f7 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,14 @@
 [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 =