Run gitlint with tox 18/109618/1
authorSangwook Ha <sangwook.ha@verizon.com>
Thu, 4 Jan 2024 01:29:40 +0000 (17:29 -0800)
committerSangwook Ha <sangwook.ha@verizon.com>
Thu, 4 Jan 2024 01:56:18 +0000 (17:56 -0800)
Verification of git message is failing because of a pip installation
issue:
https://github.com/jorisroovers/gitlint/issues/535
https://github.com/pypa/pip/issues/12372

The issue has been addressed for pip v23.3.2:
https://github.com/pypa/pip/releases/tag/23.3.2

but the virtual environment for the pre-commit hook does not appear to
have the version available yet.

Run the gitlint with tox directly until the issue is resolved in the
Jenkins environment.

Change-Id: I033240f8f7bb5a14217dbc763687ac490ae4b3d0
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index bf2cee0cf53b480b3c097b055310b1a938983d68..c0160516652d155c27b21f86891417cc42e022b2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6.0
-envlist = docs,pre-commit
+envlist = docs,pre-commit,gitlint
 # TODO: Include docs when it starts performing strict checks.
 skipsdist = true
 
@@ -36,7 +36,9 @@ deps = pre-commit
 passenv = HOME
 commands =
     pre-commit run --all-files --show-diff-on-failure
-    pre-commit run gitlint-ci --hook-stage manual
+# FIXME: run gitlint with pre-commit once the following installation issue is resolved
+#        in the Jenkins environment: https://github.com/jorisroovers/gitlint/issues/535
+#    pre-commit run gitlint-ci --hook-stage manual
 
 [testenv:gitlint]
 basepython = python3