Skip to content

Commit 9f8d844

Browse files
authored
CLN: Reorgenized doctests order (#33257)
1 parent 513d3e2 commit 9f8d844

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

ci/code_checks.sh

+25-20
Original file line numberDiff line numberDiff line change
@@ -266,57 +266,62 @@ fi
266266
### DOCTESTS ###
267267
if [[ -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.py' ; echo $MSG
278288
pytest -q --doctest-modules pandas/core/groupby/groupby.py -k"-cumcount -describe -pipe"
279289
RET=$(($RET + $?)) ; echo $MSG "DONE"
280290

281-
MSG='Doctests indexes' ; echo $MSG
282-
pytest -q --doctest-modules pandas/core/indexes/
291+
MSG='Doctests series.py' ; echo $MSG
292+
pytest -q --doctest-modules pandas/core/series.py
283293
RET=$(($RET + $?)) ; echo $MSG "DONE"
284294

285-
MSG='Doctests tools' ; echo $MSG
286-
pytest -q --doctest-modules pandas/core/tools/
287-
RET=$(($RET + $?)) ; echo $MSG "DONE"
288-
289-
MSG='Doctests reshaping functions' ; echo $MSG
290-
pytest -q --doctest-modules pandas/core/reshape/
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"
320325
fi
321326

322327
### DOCSTRINGS ###

0 commit comments

Comments
 (0)