diff --git a/.travis.yml b/.travis.yml index e32baa6f50a61..c0829a2d66358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -70,3 +70,12 @@ matrix: - if: type != cron compiler: "clang" env: CI_BUILD_TARGET="sitltest-rover sitltest-sub"" + - language: python + python: 3.7 + addons: # speedup: This test does not need addons + compiler: + dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069) + before_install: pip install flake8 + script: + - EXCLUDE=./.*,./modules/gtest,./modules/ChibiOS/test,./modules/uavcan/libuavcan + - flake8 . --count --exclude=$EXCLUDE --select=E901,E999,F821,F822,F823 --show-source --statistics