Fix gitlint tox profile 65/99565/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Thu, 3 Feb 2022 10:18:45 +0000 (11:18 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 3 Feb 2022 12:41:23 +0000 (12:41 +0000)
Tox setup/ini directory is different than the one of .gitlint
configuration file that is required by pre-commit.
Use --config option in gitlint tox profile so that pre-commit
and gitlint profile can use the same configuration file.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Icfc49dae07ee21e60a2d7d7973022f87c0dcd4f2

tox.ini

diff --git a/tox.ini b/tox.ini
index 830026113cc3e44f048019d6f9f2a34f4d736e2d..059b847c7d26cd91c9f39bdcf7e446850cb19a33 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -298,5 +298,5 @@ commands =
 basepython = python3
 deps = gitlint
 commands =
-    gitlint
+    gitlint --config ../.gitlint