Skip to content

Introduce Sphinx doctest builds#1406

Open
sirosen wants to merge 7 commits into
globus:mainfrom
sirosen:doctest
Open

Introduce Sphinx doctest builds#1406
sirosen wants to merge 7 commits into
globus:mainfrom
sirosen:doctest

Conversation

@sirosen

@sirosen sirosen commented Jul 2, 2026

Copy link
Copy Markdown
Member

In order to allow for doctest usage, but without mandating it everywhere that examples are written (today and into the future), add Sphinx config which allows for use of the doctest directive but does not automatically run all examples as doctests.
A pass over existing examples found a few items worth trying to turn into doctests, but this effort may not have been perfectly complete.

  • Setup sphinx doctest
  • Convert Timers data module docstrings to doctest
  • Add TimersClient to doctest and refine config
  • Convert GCS ConnectorTable to doctests
  • Convert scope documentation to doctests
  • Doctest part of the relative deadline doc
  • Add changelog for introduction of doctest

sirosen added 7 commits July 1, 2026 16:58
- enable the plugin
- disable default console block behavior
- new tox env
- new CI config
Improve our doctest config with
- a wrapped version of `mock.patch` which does auto-rollback
- pre-set imports for all doctests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant