aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-02 01:46:55 +0200
committerlaforge <laforge@osmocom.org>2021-05-02 20:22:49 +0000
commite9fe09baff82aa0afccfae25e569d6ae6a31c56a (patch)
tree624f18adc0625b5eaeb1e148688b782c9a486d8d /contrib
parent895fa6f83ca71a41999f949a4b094b32a817261a (diff)
contrib/jenkins.sh: run pylint to find potential errors
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/jenkins.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 2d9653a..cd9629c 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -26,6 +26,18 @@ pip install construct
# Execute automatically discovered unit tests first
python -m unittest discover -v -s tests/
+# Run pylint to find potential errors
+# Ignore E1102: not-callable
+# pySim/filesystem.py: E1102: method is not callable (not-callable)
+# Ignore E0401: import-error
+# pySim/utils.py:276: E0401: Unable to import 'Crypto.Cipher' (import-error)
+# pySim/utils.py:277: E0401: Unable to import 'Crypto.Util.strxor' (import-error)
+pip install pylint
+python -m pylint --errors-only \
+ --disable E1102 \
+ --disable E0401 \
+ pySim *.py
+
# attempt to build documentation
pip install sphinx
pip install sphinxcontrib-napoleon