From 4a3e1066d523c2499e763f79e6f28887d36a4a54 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 29 Mar 2020 17:06:22 +0200 Subject: [PATCH] Travis CI: Run flake8 on Py3 in allow_failures mode --- .travis.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e20edc87..77480b7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,19 @@ +os: linux +dist: xenial +services: docker language: generic -services: -- docker -os: -- linux +jobs: + include: + - language: generic + - language: python # run flake8 linter on Python 3 in allow_failures mode + python: 3.8 + env: + - FLAKE8_SELECT="E9,F63,F7,F82" + install: pip install flake8 + before_script: true # override + script: flake8 . --count --select=$FLAKE8_SELECT --show-source --statistics + allow_failures: + - python: 3.8 before_script: - sudo pip2 install flake8 flake8-per-file-ignores - sudo apt-get install swig libssl-dev python-all-dev