Skip to content

Commit def9922

Browse files
committed
ENH: make check-{docs,tutorials} fail on dtype mismatch
1 parent ae77f51 commit def9922

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ jobs:
181181
- name: Check docstests
182182
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
183183
run: |
184-
pip install scipy-doctest hypothesis matplotlib scipy pytz pandas
184+
pip install hypothesis matplotlib scipy pytz pandas
185+
pip install git+https://github.com/scipy/scipy_doctest.git@strict-dtypes # Temp
185186
spin check-docs -v
186187
spin check-tutorials -v
187188

numpy/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ def warnings_errors_and_rng(test=None):
211211
dt_config.rndm_markers.add('#uninitialized')
212212
dt_config.rndm_markers.add('# uninitialized')
213213

214+
# make the checker pick on mismatched dtypes
215+
dt_config.strict_check = True
216+
214217
import doctest
215218
dt_config.optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
216219

0 commit comments

Comments
 (0)