Skip to content

Commit e2bb6f9

Browse files
authored
Combined the doctests checks (#41039)
Co-authored-by: ShaharNaveh <>
1 parent d77b292 commit e2bb6f9

File tree

1 file changed

+25
-78
lines changed

1 file changed

+25
-78
lines changed

ci/code_checks.sh

+25-78
Original file line numberDiff line numberDiff line change
@@ -106,84 +106,31 @@ fi
106106
### DOCTESTS ###
107107
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
108108

109-
# Individual files
110-
111-
MSG='Doctests accessor.py' ; echo $MSG
112-
pytest -q --doctest-modules pandas/core/accessor.py
113-
RET=$(($RET + $?)) ; echo $MSG "DONE"
114-
115-
MSG='Doctests aggregation.py' ; echo $MSG
116-
pytest -q --doctest-modules pandas/core/aggregation.py
117-
RET=$(($RET + $?)) ; echo $MSG "DONE"
118-
119-
MSG='Doctests base.py' ; echo $MSG
120-
pytest -q --doctest-modules pandas/core/base.py
121-
RET=$(($RET + $?)) ; echo $MSG "DONE"
122-
123-
MSG='Doctests construction.py' ; echo $MSG
124-
pytest -q --doctest-modules pandas/core/construction.py
125-
RET=$(($RET + $?)) ; echo $MSG "DONE"
126-
127-
MSG='Doctests frame.py' ; echo $MSG
128-
pytest -q --doctest-modules pandas/core/frame.py
129-
RET=$(($RET + $?)) ; echo $MSG "DONE"
130-
131-
MSG='Doctests generic.py' ; echo $MSG
132-
pytest -q --doctest-modules pandas/core/generic.py
133-
RET=$(($RET + $?)) ; echo $MSG "DONE"
134-
135-
MSG='Doctests series.py' ; echo $MSG
136-
pytest -q --doctest-modules pandas/core/series.py
137-
RET=$(($RET + $?)) ; echo $MSG "DONE"
138-
139-
MSG='Doctests strings.py' ; echo $MSG
140-
pytest -q --doctest-modules pandas/core/strings/
141-
RET=$(($RET + $?)) ; echo $MSG "DONE"
142-
143-
MSG='Doctests sql.py' ; echo $MSG
144-
pytest -q --doctest-modules pandas/io/sql.py
145-
RET=$(($RET + $?)) ; echo $MSG "DONE"
146-
147-
# Directories
148-
149-
MSG='Doctests arrays'; echo $MSG
150-
pytest -q --doctest-modules pandas/core/arrays/
151-
RET=$(($RET + $?)) ; echo $MSG "DONE"
152-
153-
MSG='Doctests computation' ; echo $MSG
154-
pytest -q --doctest-modules pandas/core/computation/
155-
RET=$(($RET + $?)) ; echo $MSG "DONE"
156-
157-
MSG='Doctests dtypes'; echo $MSG
158-
pytest -q --doctest-modules pandas/core/dtypes/
159-
RET=$(($RET + $?)) ; echo $MSG "DONE"
160-
161-
MSG='Doctests groupby' ; echo $MSG
162-
pytest -q --doctest-modules pandas/core/groupby/
163-
RET=$(($RET + $?)) ; echo $MSG "DONE"
164-
165-
MSG='Doctests indexes' ; echo $MSG
166-
pytest -q --doctest-modules pandas/core/indexes/
167-
RET=$(($RET + $?)) ; echo $MSG "DONE"
168-
169-
MSG='Doctests ops' ; echo $MSG
170-
pytest -q --doctest-modules pandas/core/ops/
171-
RET=$(($RET + $?)) ; echo $MSG "DONE"
172-
173-
MSG='Doctests reshape' ; echo $MSG
174-
pytest -q --doctest-modules pandas/core/reshape/
175-
RET=$(($RET + $?)) ; echo $MSG "DONE"
176-
177-
MSG='Doctests tools' ; echo $MSG
178-
pytest -q --doctest-modules pandas/core/tools/
179-
RET=$(($RET + $?)) ; echo $MSG "DONE"
180-
181-
MSG='Doctests window' ; echo $MSG
182-
pytest -q --doctest-modules pandas/core/window/
183-
RET=$(($RET + $?)) ; echo $MSG "DONE"
184-
185-
MSG='Doctests tseries' ; echo $MSG
186-
pytest -q --doctest-modules pandas/tseries/
109+
MSG='Doctests for individual files' ; echo $MSG
110+
pytest -q --doctest-modules \
111+
pandas/core/accessor.py \
112+
pandas/core/aggregation.py \
113+
pandas/core/base.py \
114+
pandas/core/construction.py \
115+
pandas/core/frame.py \
116+
pandas/core/generic.py \
117+
pandas/core/series.py \
118+
pandas/io/sql.py
119+
RET=$(($RET + $?)) ; echo $MSG "DONE"
120+
121+
MSG='Doctests for directories' ; echo $MSG
122+
pytest -q --doctest-modules \
123+
pandas/core/arrays/ \
124+
pandas/core/computation/ \
125+
pandas/core/dtypes/ \
126+
pandas/core/groupby/ \
127+
pandas/core/indexes/ \
128+
pandas/core/ops/ \
129+
pandas/core/reshape/ \
130+
pandas/core/strings/ \
131+
pandas/core/tools/ \
132+
pandas/core/window/ \
133+
pandas/tseries/
187134
RET=$(($RET + $?)) ; echo $MSG "DONE"
188135

189136
fi

0 commit comments

Comments
 (0)