jjb: binutils-gdb: throttle concurrent review builds
[lttng-ci.git] / scripts / lttng-analyses / pylint.sh
index 4eb9693a9ad627274ed9f99bb35355ac13e7d715..a4b38b0e675cc575c8eb73583a4130cbe50042b1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -exu
+#!/bin/bash
 #
 # Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set -exu
+
 SRCDIR="src/lttng-analyses"
 
 PYTHON3="python3"
-P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
+P3_VERSION=$($PYTHON3 -c 'import sys;v = sys.version.split()[0].split("."); print("{}.{}".format(v[0], v[1]))')
 
 BABELTRACE_DIR=$WORKSPACE/deps/babeltrace/build
 
@@ -41,10 +43,8 @@ set +ux
 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"
This page took 0.023995 seconds and 4 git commands to generate.