@@ -13,43 +13,42 @@ if [ "$LINT" ]; then
1313 # E731, # do not assign a lambda expression, use a def
1414 # E741, # do not use variables named 'l', 'O', or 'I'
1515 # W503, # line break before binary operator
16- # C405, # Unnecessary (list/tuple) literal - rewrite as a set literal.
1716 # C406, # Unnecessary (list/tuple) literal - rewrite as a dict literal.
1817 # C408, # Unnecessary (dict/list/tuple) call - rewrite as a literal.
1918 # C409, # Unnecessary (list/tuple) passed to tuple() - (remove the outer call to tuple()/rewrite as a tuple literal).
2019 # C410 # Unnecessary (list/tuple) passed to list() - (remove the outer call to list()/rewrite as a list literal).
2120
2221 # pandas/_libs/src is C code, so no need to search there.
2322 echo " Linting *.py"
24- flake8 pandas --filename=* .py --exclude pandas/_libs/src --ignore=C405, C406,C408,C409,C410,E402,E731,E741,W503
23+ flake8 pandas --filename=* .py --exclude pandas/_libs/src --ignore=C406,C408,C409,C410,E402,E731,E741,W503
2524 if [ $? -ne " 0" ]; then
2625 RET=1
2726 fi
2827 echo " Linting *.py DONE"
2928
3029 echo " Linting setup.py"
31- flake8 setup.py --ignore=C405, C406,C408,C409,C410,E402,E731,E741,W503
30+ flake8 setup.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
3231 if [ $? -ne " 0" ]; then
3332 RET=1
3433 fi
3534 echo " Linting setup.py DONE"
3635
3736 echo " Linting asv_bench/benchmarks/"
38- flake8 asv_bench/benchmarks/ --exclude=asv_bench/benchmarks/* .py --ignore=F811,C405, C406,C408,C409,C410
37+ flake8 asv_bench/benchmarks/ --exclude=asv_bench/benchmarks/* .py --ignore=F811,C406,C408,C409,C410
3938 if [ $? -ne " 0" ]; then
4039 RET=1
4140 fi
4241 echo " Linting asv_bench/benchmarks/*.py DONE"
4342
4443 echo " Linting scripts/*.py"
45- flake8 scripts --filename=* .py --ignore=C405, C406,C408,C409,C410,E402,E731,E741,W503
44+ flake8 scripts --filename=* .py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
4645 if [ $? -ne " 0" ]; then
4746 RET=1
4847 fi
4948 echo " Linting scripts/*.py DONE"
5049
5150 echo " Linting doc scripts"
52- flake8 doc/make.py doc/source/conf.py --ignore=C405, C406,C408,C409,C410,E402,E731,E741,W503
51+ flake8 doc/make.py doc/source/conf.py --ignore=C406,C408,C409,C410,E402,E731,E741,W503
5352 if [ $? -ne " 0" ]; then
5453 RET=1
5554 fi
0 commit comments