-
Notifications
You must be signed in to change notification settings - Fork 39
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
ENH: adding doctest-requires-all directive #280
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I wonder if this will also be useful for #279.
Just some minor comments.
README.rst
Outdated
@@ -336,6 +336,11 @@ the package's ``setup.cfg`` file. The syntax for this option is a list of | |||
|
|||
Multiple requirements can be specified if separated by semicolons. | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
0044a42
to
74cebb8
Compare
This is a narrative line, before another doctest snippet | ||
|
||
>>> import foobar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formatting to reflect typical real use case.
This is a narrative line, before another doctest snippet | |
>>> import foobar | |
This is a narrative line, before another doctest snippet:: | |
>>> import foobar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not matter, all the snippets should be collected no matter if there are ::
or correct number of spaces before the >>>
.
I go ahead and merge this now, so the other PR doesn't have to be rebased. |
The need for this came up again recently in astroquery, so finally I got down to do it.
To close #183