projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: Use the https protocol for checkouts on Github, it's faster
[lttng-ci.git]
/
scripts
/
lttng-analyses
/
pylint.sh
diff --git
a/scripts/lttng-analyses/pylint.sh
b/scripts/lttng-analyses/pylint.sh
index f95960f25ebc1d457f370a5b799552e5853a7b2b..4eb9693a9ad627274ed9f99bb35355ac13e7d715 100755
(executable)
--- a/
scripts/lttng-analyses/pylint.sh
+++ b/
scripts/lttng-analyses/pylint.sh
@@
-1,6
+1,6
@@
-#!/bin/sh -exu
+#!/bin/
ba
sh -exu
#
#
-# Copyright (C) 20
15 -
Michael Jeanson <mjeanson@efficios.com>
+# Copyright (C) 20
20
Michael Jeanson <mjeanson@efficios.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@
-23,27
+23,28
@@
P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build
export LD_LIBRARY_PATH="$BABELTRACE_DIR/lib"
BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build
export LD_LIBRARY_PATH="$BABELTRACE_DIR/lib"
-export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/
dist
-packages/"
+export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/
site
-packages/"
PYENV_HOME=$WORKSPACE/.pyenv/
# Delete previously built virtualenv
PYENV_HOME=$WORKSPACE/.pyenv/
# Delete previously built virtualenv
-if [ -d
$PYENV_HOME
]; then
- rm -rf
$PYENV_HOME
+if [ -d
"$PYENV_HOME"
]; then
+ rm -rf
"$PYENV_HOME"
fi
# Create virtualenv and install necessary packages
fi
# Create virtualenv and install necessary packages
-virtualenv --system-site-packages -p $PYTHON3
$PYENV_HOME
+virtualenv --system-site-packages -p $PYTHON3
"$PYENV_HOME"
-set +u
-. $PYENV_HOME/bin/activate
-set -u
+set +ux
+# shellcheck disable=SC1090
+. "$PYENV_HOME/bin/activate"
+set -ux
pip install --quiet pylint
pip install --quiet pep8
pip install --quiet pylint
pip install --quiet pep8
-cd "$SRCDIR"
-pep8 lttnganalyses | tee $WORKSPACE/pep8.out
+cd "$SRCDIR"
-pylint -f parseable --ignore="_version.py" lttnganalyses | tee $WORKSPACE/pylint.out
+pep8 lttnganalyses | tee "$WORKSPACE/pep8.out"
+pylint -f parseable --ignore="_version.py" --disable=C0111 lttnganalyses | tee "$WORKSPACE/pylint.out"
This page took
0.028145 seconds
and
4
git commands to generate.