Skip to content

Commit decef78

Browse files
mroeschkejreback
authored andcommitted
CLN: Lint for comprehension codes (#22455)
1 parent 302643d commit decef78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/lint.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ if [ "$LINT" ]; then
2020

2121
# pandas/_libs/src is C code, so no need to search there.
2222
echo "Linting *.py"
23-
flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,C408,C409,C410,E402,E731,E741,W503
23+
flake8 pandas --filename=*.py --exclude pandas/_libs/src --ignore=C406,C408,C409,E402,E731,E741,W503
2424
if [ $? -ne "0" ]; then
2525
RET=1
2626
fi
2727
echo "Linting *.py DONE"
2828

2929
echo "Linting setup.py"
30-
flake8 setup.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
30+
flake8 setup.py --ignore=E402,E731,E741,W503
3131
if [ $? -ne "0" ]; then
3232
RET=1
3333
fi
@@ -41,21 +41,21 @@ if [ "$LINT" ]; then
4141
echo "Linting asv_bench/benchmarks/*.py DONE"
4242

4343
echo "Linting scripts/*.py"
44-
flake8 scripts --filename=*.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
44+
flake8 scripts --filename=*.py --ignore=C408,E402,E731,E741,W503
4545
if [ $? -ne "0" ]; then
4646
RET=1
4747
fi
4848
echo "Linting scripts/*.py DONE"
4949

5050
echo "Linting doc scripts"
51-
flake8 doc/make.py doc/source/conf.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
51+
flake8 doc/make.py doc/source/conf.py --ignore=E402,E731,E741,W503
5252
if [ $? -ne "0" ]; then
5353
RET=1
5454
fi
5555
echo "Linting doc scripts DONE"
5656

5757
echo "Linting *.pyx"
58-
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
58+
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
5959
if [ $? -ne "0" ]; then
6060
RET=1
6161
fi

0 commit comments

Comments
 (0)