Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: add a doctest step to CI to allow writing testable code blocs, fix existing docstring code examples errors #592

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

Valentin-Laurent
Copy link
Collaborator

@Valentin-Laurent Valentin-Laurent commented Jan 9, 2025

Description

Adding a doctest step in the testing process (in MAKEFILE, and in ReadTheDocs CI).

It allows to write testable code blocs using .. testcode:: instead of .. code:: python in our .rst files.

This step also catched several existing docstring code examples errors (that should have been catched by make tests, but haven't, for some reason). I fixed those docstrings as well.

@Valentin-Laurent Valentin-Laurent changed the title DOC: add doctest to CI DOC: add a doctest step to CI to allow writing testable code blocs, fix existing docstring code examples errors Jan 9, 2025
@Valentin-Laurent Valentin-Laurent merged commit 9cbaad8 into master Jan 9, 2025
8 checks passed
@Valentin-Laurent Valentin-Laurent deleted the add-doctest-to-ci branch January 9, 2025 10:28
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