Skip to content

Commit 8a9104b

Browse files
committed
tox: pin basepython to python3.6 in lint-python
A future commit updates the version of `pylint` we use to validate Python code, which does not work properly with Python 3.9 at the time of writing, which is the default Python on e.g., a Fedora 32 system. Instead, pin the Python version to the (Python 3) version as found on our target system(s), i.e., RHEL/CentOS 7, so Python 3.6. See: pylint-dev/pylint#3882 See: https://scality.slack.com/archives/CFXQQUDPT/p1608201195013900?thread_ts=1608200122.011200&cid=CFXQQUDPT
1 parent 2209929 commit 8a9104b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ commands =
8282
[testenv:lint-python]
8383
description =
8484
Lint Python files using pylint and mypy.
85+
# Set Python version to Python3 as shipped with RHEL/CentOS 7
86+
basepython = python3.6
8587
deps =
8688
-r{toxinidir}/buildchain/requirements-{env:OSTYPE}.txt
8789
-r{toxinidir}/buildchain/requirements-dev.txt

0 commit comments

Comments
 (0)