[PATCH] tests: install pylint for functional linters

Brian Cain posted 1 patch 2 weeks, 3 days ago
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>
pythondeps.toml | 1 +
1 file changed, 1 insertion(+)
[PATCH] tests: install pylint for functional linters
Posted by Brian Cain 2 weeks, 3 days ago
The functional linter test otherwise imports the system pylint 2.12.2.
On my system w/Python 3.12, its wrapt dependency would fail with:

    ImportError: cannot import name 'formatargspec' from 'inspect'

Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
---
 pythondeps.toml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pythondeps.toml b/pythondeps.toml
index e4c10d4a9f7..658d0aac368 100644
--- a/pythondeps.toml
+++ b/pythondeps.toml
@@ -48,3 +48,4 @@ sphinx_rtd_theme = { accepted = ">=1.2.2", installed = "1.2.2" }
 # fetched from PyPI.
 [functests]
 pygdbmi = { accepted = ">=0.11.0.0", installed = "0.11.0.0" }
+pylint = { accepted = ">=3.0.0", installed = "3.0.0" }
-- 
2.34.1

Re: [PATCH] tests: install pylint for functional linters
Posted by Philippe Mathieu-Daudé 5 days, 9 hours ago
On 8/9/26 21:36, Brian Cain wrote:
> The functional linter test otherwise imports the system pylint 2.12.2.
> On my system w/Python 3.12, its wrapt dependency would fail with:
> 
>      ImportError: cannot import name 'formatargspec' from 'inspect'
> 
> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
> ---
>   pythondeps.toml | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>