@@ -125,6 +125,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
125125 # invgrep -R --include="*.py*" -E "from numpy import nan " pandas # GH#24822 not yet implemented since the offending imports have not all been removed
126126 RET=$(( $RET + $? )) ; echo $MSG " DONE"
127127
128+ MSG=' Check for use of exec' ; echo $MSG
129+ invgrep -R --include=" *.py*" -E " [^a-zA-Z0-9_]exec\(" pandas
130+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
131+
128132 MSG=' Check for pytest warns' ; echo $MSG
129133 invgrep -r -E --include ' *.py' ' pytest\.warns' pandas/tests/
130134 RET=$(( $RET + $? )) ; echo $MSG " DONE"
@@ -184,7 +188,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
184188 invgrep -R --include=" *.rst" " .. ipython ::" doc/source
185189 RET=$(( $RET + $? )) ; echo $MSG " DONE"
186190
187- MSG=' Check that no file in the repo contains tailing whitespaces' ; echo $MSG
191+ MSG=' Check that no file in the repo contains trailing whitespaces' ; echo $MSG
188192 set -o pipefail
189193 if [[ " $AZURE " == " true" ]]; then
190194 # we exclude all c/cpp files as the c/cpp files of pandas code base are tested when Linting .c and .h files
@@ -262,13 +266,17 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
262266 -k" -from_arrays -from_breaks -from_intervals -from_tuples -set_closed -to_tuples -interval_range"
263267 RET=$(( $RET + $? )) ; echo $MSG " DONE"
264268
269+ MSG=' Doctests arrays/string_.py' ; echo $MSG
270+ pytest -q --doctest-modules pandas/core/arrays/string_.py
271+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
272+
265273fi
266274
267275# ## DOCSTRINGS ###
268276if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
269277
270- MSG=' Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04, SS05, PR03, PR04, PR05, PR10, EX04, RT01, RT04, RT05, SA05)' ; echo $MSG
271- $BASE_DIR /scripts/validate_docstrings.py --format=azure --errors=GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS04,SS05,PR03,PR04,PR05,PR10,EX04,RT01,RT04,RT05,SA05
278+ MSG=' Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04, SS05, PR03, PR04, PR05, PR10, EX04, RT01, RT04, RT05, SA01, SA02, SA03, SA05)' ; echo $MSG
279+ $BASE_DIR /scripts/validate_docstrings.py --format=azure --errors=GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS04,SS05,PR03,PR04,PR05,PR10,EX04,RT01,RT04,RT05,SA01,SA02,SA03, SA05
272280 RET=$(( $RET + $? )) ; echo $MSG " DONE"
273281
274282fi
0 commit comments