From 6a5d2dfbe642d7763cf5f63985f5817752b1536f Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 11 Jun 2020 10:18:18 -0400 Subject: [PATCH 1/1] Make GitLint actually run as part of pre-commit The tox environment for pre-commit currently does not actually run the gitlint hook. Change-Id: I157879d095436032d701ebe3b10fc86959af34c4 Signed-off-by: Thanh Ha --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 2be422d1a..9cea7543a 100644 --- a/tox.ini +++ b/tox.ini @@ -33,6 +33,7 @@ deps = pre-commit commands = pre-commit install --hook-type commit-msg pre-commit run --all-files --show-diff-on-failure + pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG [testenv:prefix] commands = python {toxinidir}/check_prefix.py -- 2.36.6