From 437551758ef8805b772a2883e34fa4a7d0624094 Mon Sep 17 00:00:00 2001 From: Brian Rosmaita Date: Wed, 25 Feb 2026 17:05:46 -0500 Subject: [PATCH] Fix pylint job The old version of pylint we were using couldn't be installed because of conflicting requirements versions, so update it to the most recent pylint, 4.0.5, which supports python 3.14, since we will be supporting it too. Also update our lintstack scripts to use the modern name for do_exit, namely, 'exit'. Change-Id: I8d8bf8064aaea4e5de25634f0d86fb5e619b8503 Signed-off-by: Brian Rosmaita --- tools/lintstack.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lintstack.py b/tools/lintstack.py index e6516c7e3..52251e875 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -153,7 +153,7 @@ def run_pylint(): args = [ "--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'", "-E", "cinderclient"] - lint.Run(args, reporter=reporter, do_exit=False) + lint.Run(args, reporter=reporter, exit=False) val = buff.getvalue() buff.close() return val diff --git a/tox.ini b/tox.ini index 8e97545c7..ee03dcd22 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt - pylint==2.6.0 + pylint==4.0.5 commands = bash tools/lintstack.sh allowlist_externals = bash