From b4eaf3ee3eb8870ba8ade738621672674f9f4f50 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Mon, 16 Dec 2019 16:31:13 -0600 Subject: [PATCH 1/5] test CI --- pandas/core/arrays/sparse/array.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 548f2bf702e60..16676f7037e91 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1,6 +1,7 @@ """ SparseArray data structure """ +import unittest from collections import abc import numbers import operator From 8b98196f7b3b78e0b9cf5332b9c362495d67dcff Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Mon, 16 Dec 2019 16:33:06 -0600 Subject: [PATCH 2/5] verbose --- ci/code_checks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8c4f3740ef8fa..8e9ab3afeaf0a 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -62,15 +62,15 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then # pandas/_libs/src is C code, so no need to search there. MSG='Linting .py code' ; echo $MSG - flake8 --format="$FLAKE8_FORMAT" . + flake8 -v --format="$FLAKE8_FORMAT" . RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Linting .pyx code' ; echo $MSG - flake8 --format="$FLAKE8_FORMAT" pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126,E265,E305,E301,E127,E261,E271,E129,W291,E222,E241,E123,F403,C400,C401,C402,C403,C404,C405,C406,C407,C408,C409,C410,C411 + flake8 -v --format="$FLAKE8_FORMAT" pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126,E265,E305,E301,E127,E261,E271,E129,W291,E222,E241,E123,F403,C400,C401,C402,C403,C404,C405,C406,C407,C408,C409,C410,C411 RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Linting .pxd and .pxi.in' ; echo $MSG - flake8 --format="$FLAKE8_FORMAT" pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403 + flake8 -v --format="$FLAKE8_FORMAT" pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403 RET=$(($RET + $?)) ; echo $MSG "DONE" echo "flake8-rst --version" From c31ee5adaf4034b0549e2e26e93f0702ded75678 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 17 Dec 2019 06:09:35 -0600 Subject: [PATCH 3/5] fixed format --- ci/code_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8e9ab3afeaf0a..fcbd9ba56df6f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -39,7 +39,7 @@ function invgrep { } if [[ "$GITHUB_ACTIONS" == "true" ]]; then - FLAKE8_FORMAT="##[error]%(path)s:%(row)s:%(col)s:%(code):%(text)s" + FLAKE8_FORMAT="##[error]%(path)s:%(row)s:%(col)s:%(code)s:%(text)s" INVGREP_PREPEND="##[error]" else FLAKE8_FORMAT="default" From 7e32b908086950dc3c4d1dc8c992f0ccd0296b17 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 17 Dec 2019 06:10:22 -0600 Subject: [PATCH 4/5] remove verbose --- ci/code_checks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fcbd9ba56df6f..559cedd62e7ce 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -62,15 +62,15 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then # pandas/_libs/src is C code, so no need to search there. MSG='Linting .py code' ; echo $MSG - flake8 -v --format="$FLAKE8_FORMAT" . + flake8 --format="$FLAKE8_FORMAT" . RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Linting .pyx code' ; echo $MSG - flake8 -v --format="$FLAKE8_FORMAT" pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126,E265,E305,E301,E127,E261,E271,E129,W291,E222,E241,E123,F403,C400,C401,C402,C403,C404,C405,C406,C407,C408,C409,C410,C411 + flake8 --format="$FLAKE8_FORMAT" pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126,E265,E305,E301,E127,E261,E271,E129,W291,E222,E241,E123,F403,C400,C401,C402,C403,C404,C405,C406,C407,C408,C409,C410,C411 RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Linting .pxd and .pxi.in' ; echo $MSG - flake8 -v --format="$FLAKE8_FORMAT" pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403 + flake8 --format="$FLAKE8_FORMAT" pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403 RET=$(($RET + $?)) ; echo $MSG "DONE" echo "flake8-rst --version" From 182916d82b16bfee124239f79c4b7ceb526e53b7 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Tue, 17 Dec 2019 06:49:03 -0600 Subject: [PATCH 5/5] fix --- pandas/core/arrays/sparse/array.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 16676f7037e91..548f2bf702e60 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1,7 +1,6 @@ """ SparseArray data structure """ -import unittest from collections import abc import numbers import operator