X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-analyses%2Fpylint.sh;h=4eb9693a9ad627274ed9f99bb35355ac13e7d715;hb=99018cead6281b3005ee4bc2c0ada2cac177e460;hp=9475339bba183e3da6e0cfe8da9b6cd6dc6eaef9;hpb=c7b16cb8f1862c9d51bc8542fbc7cd10388add13;p=lttng-ci.git diff --git a/scripts/lttng-analyses/pylint.sh b/scripts/lttng-analyses/pylint.sh index 9475339..4eb9693 100755 --- a/scripts/lttng-analyses/pylint.sh +++ b/scripts/lttng-analyses/pylint.sh @@ -1,6 +1,6 @@ #!/bin/bash -exu # -# Copyright (C) 2015 - Michael Jeanson +# Copyright (C) 2020 Michael Jeanson # # 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 @@ -35,15 +35,16 @@ fi # Create virtualenv and install necessary packages virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME" -set +u +set +ux +# shellcheck disable=SC1090 . "$PYENV_HOME/bin/activate" -set -u +set -ux pip install --quiet pylint pip install --quiet pep8 + cd "$SRCDIR" pep8 lttnganalyses | tee "$WORKSPACE/pep8.out" - pylint -f parseable --ignore="_version.py" --disable=C0111 lttnganalyses | tee "$WORKSPACE/pylint.out"