Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
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
4 changes: 2 additions & 2 deletions build_tools/travis/flake8_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ check_files() {
if [[ "$MODIFIED_FILES" == "no_match" ]]; then
echo "No file outside sklearn/externals and doc/sphinxext/sphinx_gallery has been modified"
else
check_files "$(echo "$MODIFIED_FILES" | grep -v ^examples)"
check_files "$(echo "$MODIFIED_FILES" | grep -v ^examples)" --ignore=E731
# Examples are allowed to not have imports at top of file
check_files "$(echo "$MODIFIED_FILES" | grep ^examples)" --ignore=E402
check_files "$(echo "$MODIFIED_FILES" | grep ^examples)" --ignore=E402,E731
fi
echo -e "No problem detected by flake8\n"