From 975230cc6e0736a1e3cc4d62566bbfb9f9ea4b25 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 6 Oct 2016 07:25:44 +0200 Subject: [PATCH 1/2] Add flake8 --exit-zero to the Travis CI process flake8 provides code improvement suggestions to PR submitters. The --exit-zero flag prevents flake8 from halting the build process. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index b8495e401..6914dbda0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,10 @@ python: install: - 'pip install -r requirements.txt' + - pip install flake8 + +before_script: + flake8 . --count --exit-zero --max-line-length=120 --statistics script: - 'nosetests --debug=nose,nose.importer --debug-log=nose_debug -svx dronekit.test.unit' From b47555514ff854706f1da13ad9a7c3ad4c7e19e6 Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 7 Oct 2016 21:28:47 +0200 Subject: [PATCH 2/2] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6914dbda0..0195f8848 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ install: - pip install flake8 before_script: - flake8 . --count --exit-zero --max-line-length=120 --statistics + flake8 . --count --exit-zero --max-line-length=120 --statistics script: - 'nosetests --debug=nose,nose.importer --debug-log=nose_debug -svx dronekit.test.unit'