From 44b9965e5392cee767b3f179b0f45bf02bab892f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 27 Jun 2020 08:00:43 +0200 Subject: [PATCH] Travis CI: Lint Python code for undefined names --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bee77d0830..5c2ee51749 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: cpp cache: ccache -sudo: required dist: xenial os: @@ -18,11 +17,12 @@ addons: - clang-format-3.8 before_install: - - sudo pip install cpplint pre-commit==1.10.3 + - sudo pip install cpplint flake8 pre-commit==1.10.3 - sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format # Download and install recent cmake script: + - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - | function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } - | -- GitLab