Skip to content

CI: lint for rest of pandas #12035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="$?"

Expand Down
20 changes: 20 additions & 0 deletions ci/lint_ok_for_now.sh
Original file line number Diff line number Diff line change
@@ -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