From: Thanh Ha Date: Sat, 6 Jun 2020 14:08:36 +0000 (-0400) Subject: Make GitLint actually run as part of pre-commit X-Git-Tag: v0.5.0~4 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=b473c32f73422b024266e85072a8b1b1c12f70e8;p=releng%2Fdocs-conf.git 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: Idbb1f8878dfbc387468dcf9dc874f21a25ffa856 Signed-off-by: Thanh Ha --- diff --git a/tox.ini b/tox.ini index 8147f78..6c855dc 100644 --- a/tox.ini +++ b/tox.ini @@ -47,6 +47,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:reno] basepython = python3