From 64d23214df22e7261ea455463f7a49e0d76f646a Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Mon, 20 Aug 2018 19:15:07 -0700 Subject: [PATCH 1/2] Lint for more codes --- ci/lint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/lint.sh b/ci/lint.sh index ba5334310c34a..b9692c551b578 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -20,14 +20,14 @@ if [ "$LINT" ]; then # pandas/_libs/src is C code, so no need to search there. echo "Linting *.py" - flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,C408,C409,C410,E402,E731,E741,W503 + flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,C408,C409,E402,E731,E741,W503 if [ $? -ne "0" ]; then RET=1 fi echo "Linting *.py DONE" echo "Linting setup.py" - flake8 setup.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503 + flake8 setup.py --ignore=E402,E731,E741,W503 if [ $? -ne "0" ]; then RET=1 fi @@ -41,14 +41,14 @@ if [ "$LINT" ]; then echo "Linting asv_bench/benchmarks/*.py DONE" echo "Linting scripts/*.py" - flake8 scripts --filename=*.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503 + flake8 scripts --filename=*.py --ignore=C408,E402,E731,E741,W503 if [ $? -ne "0" ]; then RET=1 fi echo "Linting scripts/*.py DONE" echo "Linting doc scripts" - flake8 doc/make.py doc/source/conf.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503 + flake8 doc/make.py doc/source/conf.py --ignore=E402,E731,E741,W503 if [ $? -ne "0" ]; then RET=1 fi From 06653bdf06ba9572ca863a0e7fea7771ca51c18d Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Tue, 21 Aug 2018 23:03:55 -0700 Subject: [PATCH 2/2] LINT: Comprehension codes --- ci/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/lint.sh b/ci/lint.sh index b9692c551b578..c7ea92e6a67e6 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -55,7 +55,7 @@ if [ "$LINT" ]; then echo "Linting doc scripts DONE" echo "Linting *.pyx" - flake8 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,C407,C411 + flake8 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 if [ $? -ne "0" ]; then RET=1 fi