-
Notifications
You must be signed in to change notification settings - Fork 22
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
docs: Fix formatting of example section in docstring #1333
Conversation
Coverage Report for backend
|
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.
LGTM, thanks
>>> | ||
>> import skore | ||
>> | ||
>> project = skore.Project("my-xp") | ||
>> project.put("score", 1.0) | ||
>> project.get("score") | ||
>>> import skore | ||
>>> project = skore.Project("my-xp") | ||
>>> project.put("score", 1.0) | ||
>>> project.get("score") |
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 was intentionally done to avoid running this doctest.
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.
In this case we need # +SKIP
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.
We can't skip an entire block with only one instruction :(
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.
We would need the following package: https://github.com/scipy/scipy_doctest
I think it allows to skip for an entire block. Also it could be nice because it deals properly with the float numbers check.
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.
Should I create a separate issue for this?
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.
Yep you can do that. I'm not sure how much work does it involves but it should quite straightforward.
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.
Done, here is the issue: #1347
Follow-up #1333 Avoid to execute the `project.put` and `project.get` in the docstring of `Project`.
closes #1326
Fixing formatting in "Examples" section some method classes.