From 5d9b13bf9cbf881219d4976d76e05f5b6d79bfab Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 8 Aug 2016 17:53:02 -0400 Subject: [PATCH] jjb: cleanup lttng-analyses pylint script Signed-off-by: Michael Jeanson --- scripts/lttng-analyses/pylint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/lttng-analyses/pylint.sh b/scripts/lttng-analyses/pylint.sh index f95960f..47947cf 100755 --- a/scripts/lttng-analyses/pylint.sh +++ b/scripts/lttng-analyses/pylint.sh @@ -28,15 +28,15 @@ export PYTHONPATH="$BABELTRACE_DIR/lib/python${P3_VERSION}/dist-packages/" 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 -virtualenv --system-site-packages -p $PYTHON3 $PYENV_HOME +virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME" set +u -. $PYENV_HOME/bin/activate +. "$PYENV_HOME/bin/activate" set -u pip install --quiet pylint @@ -44,6 +44,6 @@ pip install --quiet pep8 cd "$SRCDIR" -pep8 lttnganalyses | tee $WORKSPACE/pep8.out +pep8 lttnganalyses | tee "$WORKSPACE/pep8.out" -pylint -f parseable --ignore="_version.py" lttnganalyses | tee $WORKSPACE/pylint.out +pylint -f parseable --ignore="_version.py" --disable=C0111 lttnganalyses | tee "$WORKSPACE/pylint.out" -- 2.34.1