@@ -93,7 +93,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
93
93
# this particular codebase (e.g. src/headers, src/klib, src/msgpack). However,
94
94
# we can lint all header files since they aren't "generated" like C files are.
95
95
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
97
97
RET=$(( $RET + $? )) ; echo $MSG " DONE"
98
98
99
99
echo " isort --version-number"
@@ -174,9 +174,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
174
174
MSG=' Check that no file in the repo contains tailing whitespaces' ; echo $MSG
175
175
set -o pipefail
176
176
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}'
178
179
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}'
180
181
fi
181
182
RET=$(( $RET + $? )) ; echo $MSG " DONE"
182
183
fi
@@ -206,7 +207,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
206
207
207
208
MSG=' Doctests frame.py' ; echo $MSG
208
209
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"
210
211
RET=$(( $RET + $? )) ; echo $MSG " DONE"
211
212
212
213
MSG=' Doctests series.py' ; echo $MSG
240
241
# ## DOCSTRINGS ###
241
242
if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
242
243
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
245
246
RET=$(( $RET + $? )) ; echo $MSG " DONE"
246
247
247
248
fi
0 commit comments