From a437d11135e66b7645021c606c8b2099358302c8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 31 Aug 2024 19:23:47 +0200 Subject: [PATCH] contrib/jenkins.sh: Install dependencies before calling pylint This is the only way we can make sure pylint has all required information about imports from packages we depend upon. Change-Id: I29582aa3d7f9ace9ce832d5b907420aaf14881fb --- contrib/jenkins.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index b3d83ddb..5356fcbc 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -51,6 +51,12 @@ case "$JOB_TYPE" in "pylint") # Print pylint version pip3 freeze | grep pylint + + virtualenv -p python3 venv --system-site-packages + . venv/bin/activate + + pip install . + # Run pylint to find potential errors # Ignore E1102: not-callable # pySim/filesystem.py: E1102: method is not callable (not-callable)