@@ -93,7 +93,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
9393 # this particular codebase (e.g. src/headers, src/klib, src/msgpack). However,
9494 # we can lint all header files since they aren't "generated" like C files are.
9595 MSG=' Linting .c and .h' ; echo $MSG
96- cpplint --quiet --extensions=c,h --headers=h --recursive --filter=-readability/casting,-runtime/int,-build/include_subdir pandas/_libs/src/* .h pandas/_libs/src/parser pandas/_libs/ujson pandas/_libs/tslibs/src/datetime
96+ cpplint --quiet --extensions=c,h --headers=h --recursive --filter=-readability/casting,-runtime/int,-build/include_subdir pandas/_libs/src/* .h pandas/_libs/src/parser pandas/_libs/ujson pandas/_libs/tslibs/src/datetime pandas/io/msgpack pandas/_libs/ * .cpp pandas/util
9797 RET=$(( $RET + $? )) ; echo $MSG " DONE"
9898
9999 echo " isort --version-number"
@@ -174,9 +174,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
174174 MSG=' Check that no file in the repo contains tailing whitespaces' ; echo $MSG
175175 set -o pipefail
176176 if [[ " $AZURE " == " true" ]]; then
177- ! grep -n --exclude=" *.svg" -RI " \s$" * | awk -F " :" ' {print "##vso[task.logissue type=error;sourcepath=" $1 ";linenumber=" $2 ";] Tailing whitespaces found: " $3}'
177+ # we exclude all c/cpp files as the c/cpp files of pandas code base are tested when Linting .c and .h files
178+ ! grep -n ' --exclude=*.' {svg,c,cpp,html} -RI " \s$" * | awk -F " :" ' {print "##vso[task.logissue type=error;sourcepath=" $1 ";linenumber=" $2 ";] Tailing whitespaces found: " $3}'
178179 else
179- ! grep -n --exclude=" *. svg" -RI " \s$" * | awk -F " :" ' {print $1 ":" $2 ":Tailing whitespaces found: " $3}'
180+ ! grep -n ' --exclude=*. ' { svg,c,cpp,html} -RI " \s$" * | awk -F " :" ' {print $1 ":" $2 ":Tailing whitespaces found: " $3}'
180181 fi
181182 RET=$(( $RET + $? )) ; echo $MSG " DONE"
182183fi
@@ -206,7 +207,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
206207
207208 MSG=' Doctests frame.py' ; echo $MSG
208209 pytest -q --doctest-modules pandas/core/frame.py \
209- -k" -axes -combine - itertuples -join -pivot_table -query -reindex -reindex_axis -round"
210+ -k" - itertuples -join -reindex -reindex_axis -round"
210211 RET=$(( $RET + $? )) ; echo $MSG " DONE"
211212
212213 MSG=' Doctests series.py' ; echo $MSG
240241# ## DOCSTRINGS ###
241242if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
242243
243- MSG=' Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, EX04)' ; echo $MSG
244- $BASE_DIR /scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR05,EX04
244+ MSG=' Validate docstrings (GL06, GL07, GL09, SS04, PR03, PR05, PR10, EX04, RT04, RT05, SS05, SA05 )' ; echo $MSG
245+ $BASE_DIR /scripts/validate_docstrings.py --format=azure --errors=GL06,GL07,GL09,SS04,PR03,PR04, PR05,EX04,RT04,RT05,SS05,SA05
245246 RET=$(( $RET + $? )) ; echo $MSG " DONE"
246247
247248fi
0 commit comments