dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/32719
)
Change subject: WIP: apply pylinth on cmd2 1.5 and later versions seperately
......................................................................
WIP: apply pylinth on cmd2 1.5 and later versions seperately
Change-Id: I129b8c90ac80d75e125c81f5d5028fae3e295e6d
---
M contrib/jenkins.sh
1 file changed, 21 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/19/32719/1
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 34f47ea..fa583e1 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -31,6 +31,10 @@
../tests/pysim-test.sh
;;
"pylint")
+ # Be sure to run pylint with cmd2 version 1.5 so that we can be sure older cmd2
versions
+ # are still supported
+ pip uninstall -y cmd2
+ pip install cmd2==1.5
# Run pylint to find potential errors
# Ignore E1102: not-callable
# pySim/filesystem.py: E1102: method is not callable (not-callable)
@@ -42,6 +46,14 @@
--disable E0401 \
--enable W0301 \
pySim *.py
+ # Upgrade cmd2 and run pylint again against a recent version of cmd2, the parameters
+ # are the same as above
+ pip install --upgrade cmd2
+ python3 -m pylint -j0 --errors-only \
+ --disable E1102 \
+ --disable E0401 \
+ --enable W0301 \
+ pySim *.py
;;
"docs")
rm -rf docs/_build
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/32719
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I129b8c90ac80d75e125c81f5d5028fae3e295e6d
Gerrit-Change-Number: 32719
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange