From eba98eb378bd346f5bd6b3b8f4f79cc17eb7f1ad Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Wed, 13 Jan 2016 15:17:38 -0500 Subject: [PATCH] CI: lint for rest of pandas --- .travis.yml | 1 + ci/lint.sh | 7 +++++-- ci/lint_ok_for_now.sh | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100755 ci/lint_ok_for_now.sh diff --git a/.travis.yml b/.travis.yml index 087d7f1565707..9fdb98c0124b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -175,3 +175,4 @@ after_script: - source activate pandas && ci/print_versions.py - ci/print_skipped.py /tmp/nosetests.xml - ci/lint.sh + - ci/lint_ok_for_now.sh diff --git a/ci/lint.sh b/ci/lint.sh index 1795451f7ace4..97d318b48469e 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -4,8 +4,11 @@ echo "inside $0" source activate pandas -echo flake8 pandas/core --statistics -flake8 pandas/core --statistics +for path in 'core' +do + echo "linting -> pandas/$path" + flake8 pandas/$path --filename '*.py' --statistics -q +done RET="$?" diff --git a/ci/lint_ok_for_now.sh b/ci/lint_ok_for_now.sh new file mode 100755 index 0000000000000..eba667fadde06 --- /dev/null +++ b/ci/lint_ok_for_now.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo "inside $0" + +source activate pandas + +for path in 'io' 'stats' 'computation' 'tseries' 'util' 'compat' 'tools' 'sparse' 'tests' +do + echo "linting [ok_for_now] -> pandas/$path" + flake8 pandas/$path --filename '*.py' --statistics -q +done + +RET="$?" + +# we are disabling the return code for now +# to have Travis-CI pass. When the code +# passes linting, re-enable +#exit "$RET" + +exit 0