@@ -122,7 +122,11 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
122
122
MSG=' Check for non-standard imports' ; echo $MSG
123
123
invgrep -R --include=" *.py*" -E " from pandas.core.common import " pandas
124
124
invgrep -R --include=" *.py*" -E " from collections.abc import " pandas
125
- # invgrep -R --include="*.py*" -E "from numpy import nan " pandas # GH#24822 not yet implemented since the offending imports have not all been removed
125
+ invgrep -R --include=" *.py*" -E " from numpy import nan " pandas
126
+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
127
+
128
+ MSG=' Check for use of exec' ; echo $MSG
129
+ invgrep -R --include=" *.py*" -E " [^a-zA-Z0-9_]exec\(" pandas
126
130
RET=$(( $RET + $? )) ; echo $MSG " DONE"
127
131
128
132
MSG=' Check for pytest warns' ; echo $MSG
@@ -184,7 +188,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
184
188
invgrep -R --include=" *.rst" " .. ipython ::" doc/source
185
189
RET=$(( $RET + $? )) ; echo $MSG " DONE"
186
190
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
188
192
set -o pipefail
189
193
if [[ " $AZURE " == " true" ]]; then
190
194
# 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
262
266
-k" -from_arrays -from_breaks -from_intervals -from_tuples -set_closed -to_tuples -interval_range"
263
267
RET=$(( $RET + $? )) ; echo $MSG " DONE"
264
268
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
+
265
273
fi
266
274
267
275
# ## DOCSTRINGS ###
268
276
if [[ -z " $CHECK " || " $CHECK " == " docstrings" ]]; then
269
277
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
272
280
RET=$(( $RET + $? )) ; echo $MSG " DONE"
273
281
274
282
fi
0 commit comments