266266# ## DOCTESTS ###
267267if [[ -z " $CHECK " || " $CHECK " == " doctests" ]]; then
268268
269+ # Individual files
270+
271+ MSG=' Doctests base.py' ; echo $MSG
272+ pytest -q --doctest-modules pandas/core/base.py
273+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
274+
275+ MSG=' Doctests construction.py' ; echo $MSG
276+ pytest -q --doctest-modules pandas/core/construction.py
277+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
278+
269279 MSG=' Doctests frame.py' ; echo $MSG
270280 pytest -q --doctest-modules pandas/core/frame.py
271281 RET=$(( $RET + $? )) ; echo $MSG " DONE"
272282
273- MSG=' Doctests series .py' ; echo $MSG
274- pytest -q --doctest-modules pandas/core/series .py
283+ MSG=' Doctests generic .py' ; echo $MSG
284+ pytest -q --doctest-modules pandas/core/generic .py
275285 RET=$(( $RET + $? )) ; echo $MSG " DONE"
276286
277287 MSG=' Doctests groupby' ; echo $MSG
278288 pytest -q --doctest-modules pandas/core/groupby/
279289 RET=$(( $RET + $? )) ; echo $MSG " DONE"
280290
281- MSG=' Doctests tools' ; echo $MSG
282- pytest -q --doctest-modules pandas/core/tools/
283- RET=$(( $RET + $? )) ; echo $MSG " DONE"
284-
285- MSG=' Doctests reshaping functions' ; echo $MSG
286- pytest -q --doctest-modules pandas/core/reshape/
291+ MSG=' Doctests series.py' ; echo $MSG
292+ pytest -q --doctest-modules pandas/core/series.py
287293 RET=$(( $RET + $? )) ; echo $MSG " DONE"
288294
289- MSG=' Doctests interval classes' ; echo $MSG
290- pytest -q --doctest-modules pandas/core/indexes/interval.py
291- RET=$(( $RET + $? )) ; echo $MSG " DONE"
295+ # Directories
292296
293297 MSG=' Doctests arrays' ; echo $MSG
294298 pytest -q --doctest-modules pandas/core/arrays/
295299 RET=$(( $RET + $? )) ; echo $MSG " DONE"
296300
301+ MSG=' Doctests computation' ; echo $MSG
302+ pytest -q --doctest-modules pandas/core/computation/
303+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
304+
297305 MSG=' Doctests dtypes' ; echo $MSG
298306 pytest -q --doctest-modules pandas/core/dtypes/
299307 RET=$(( $RET + $? )) ; echo $MSG " DONE"
300308
301- MSG=' Doctests base.py ' ; echo $MSG
302- pytest -q --doctest-modules pandas/core/base.py
309+ MSG=' Doctests indexes ' ; echo $MSG
310+ pytest -q --doctest-modules pandas/core/indexes/
303311 RET=$(( $RET + $? )) ; echo $MSG " DONE"
304312
305- MSG=' Doctests construction.py ' ; echo $MSG
306- pytest -q --doctest-modules pandas/core/construction.py
313+ MSG=' Doctests reshaping functions ' ; echo $MSG
314+ pytest -q --doctest-modules pandas/core/reshape/
307315 RET=$(( $RET + $? )) ; echo $MSG " DONE"
308316
309- MSG=' Doctests generic.py ' ; echo $MSG
310- pytest -q --doctest-modules pandas/core/generic.py
317+ MSG=' Doctests tools ' ; echo $MSG
318+ pytest -q --doctest-modules pandas/core/tools/
311319 RET=$(( $RET + $? )) ; echo $MSG " DONE"
312320
313321 MSG=' Doctests tseries' ; echo $MSG
314322 pytest -q --doctest-modules pandas/tseries/
315323 RET=$(( $RET + $? )) ; echo $MSG " DONE"
316324
317- MSG=' Doctests computation' ; echo $MSG
318- pytest -q --doctest-modules pandas/core/computation/
319- RET=$(( $RET + $? )) ; echo $MSG " DONE"
320325fi
321326
322327# ## DOCSTRINGS ###
@@ -327,7 +332,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
327332 RET=$(( $RET + $? )) ; echo $MSG " DONE"
328333
329334 MSG=' Validate correct capitalization among titles in documentation' ; echo $MSG
330- $BASE_DIR /scripts/validate_rst_title_capitalization.py $BASE_DIR /doc/source/development/contributing.rst
335+ $BASE_DIR /scripts/validate_rst_title_capitalization.py $BASE_DIR /doc/source/development/contributing.rst $BASE_DIR /doc/source/reference
331336 RET=$(( $RET + $? )) ; echo $MSG " DONE"
332337
333338fi
0 commit comments