Use Python 3 for pre-commit env 13/84013/1
authorThanh Ha <zxiiro@gmail.com>
Tue, 27 Aug 2019 12:48:29 +0000 (08:48 -0400)
committerThanh Ha <zxiiro@gmail.com>
Tue, 27 Aug 2019 12:48:29 +0000 (08:48 -0400)
Rather than fighting the inevitable of Python 2 EOL. Use Python 3
as the base Python system for the pre-commit check.

Change-Id: I2c2453fcf6dfc2e178549f2a1ff5b9c2d502f2e5
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index 4e5e9aabb69c235195c35632c75c1063fb739a85..c065e39d3fb5f13f6082381ebd3d2bd693c41bb4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -20,6 +20,7 @@ commands =
     sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
 
 [testenv:pre-commit]
+basepython = python3
 deps = pre-commit
 commands =
     pre-commit install --hook-type commit-msg