Skip to content

Commit bebd7e0

Browse files
committed
DOC: fix check-tutorials, add debug cruft [skip azp][skip cirrus]
1 parent 7c3be35 commit bebd7e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
# - validates ReST blocks (via validate_rst_syntax)
9898
# - checks that all of a module's `__all__` is reflected in the
9999
# module-level docstring autosummary
100+
echo calling python tools/refguide_check.py -v
100101
python tools/refguide_check.py -v
101102
102103
- persist_to_workspace:

.spin/cmds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,14 +369,14 @@ def check_docs(ctx, pytest_args, n_jobs, verbose, *args, **kwargs):
369369
def check_tutorials(ctx, pytest_args, n_jobs, verbose, *args, **kwargs):
370370
"""🔧 Run doctests of user-facing rst tutorials.
371371
372-
To test all tutorials in the numpy/doc/source/user/ directory, use
372+
To test all tutorials in the numpy doc/source/user/ directory, use
373373
374374
spin check-tutorials
375375
376376
To run tests on a specific RST file:
377377
378378
\b
379-
spin check-tutorials numpy/doc/source/user/absolute-beginners.rst
379+
spin check-tutorials doc/source/user/absolute-beginners.rst
380380
381381
\b
382382
Note:
@@ -393,11 +393,11 @@ def check_tutorials(ctx, pytest_args, n_jobs, verbose, *args, **kwargs):
393393
# - `spin check-tutorials path/to/rst`, and
394394
# - `spin check-tutorials path/to/rst -- --durations=3`
395395
if (not pytest_args) or all(arg.startswith('-') for arg in pytest_args):
396-
pytest_args = ('numpy/doc/source/user',) + pytest_args
396+
pytest_args = ('doc/source/user',) + pytest_args
397397

398398
# make all paths relative to the numpy source folder
399399
pytest_args = tuple(
400-
str(curdir / '..' / '..' / arg) if not arg.startswith('-') else arg
400+
str(curdir / '..' / arg) if not arg.startswith('-') else arg
401401
for arg in pytest_args
402402
)
403403

0 commit comments

Comments
 (0)