-
Notifications
You must be signed in to change notification settings - Fork 58
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
Dev/improve configurable documentation #406
base: master
Are you sure you want to change the base?
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.
Some capitalization for consistency and an import issue as interpreted from the doc-test perspective.
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.
Python 2.7 unit test issue. Yes yes, python 2 is deprecated, but I'm not sure its appropriate to fully deprecate tests just yet. Also that would be a different PR.
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.
Not sure why travis-ci results are not showing readilly in the review section at the bottom, but that's still failing if you go to https://travis-ci.org/github/Kitware/SMQTK/ and then find your branch in there. TLDR there's a missing line-continuation in the doc-test.
It may be helpful to run pytest
or setup.py test
locally to make sure things pass and then use CI as a double check.
>>> NonCompliantDefault.get_default_config() == | ||
... {'power_func': {'module': 'math', 'attribute': 'pow'}} |
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.
Failing doc-test: requires a slash at the end for the line continuation.
>>> NonCompliantDefault.get_default_config() == | |
... {'power_func': {'module': 'math', 'attribute': 'pow'}} | |
>>> NonCompliantDefault.get_default_config() == \ | |
... {'power_func': {'module': 'math', 'attribute': 'pow'}} |
>>> json.dumps(NonCompliantDefault.get_default_config()) == | ||
... {"power_func": {"module": "math", "attribute": "pow"}} |
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.
Failing doc-test: requires a slash at the end for the line continuation.
>>> json.dumps(NonCompliantDefault.get_default_config()) == | |
... {"power_func": {"module": "math", "attribute": "pow"}} | |
>>> json.dumps(NonCompliantDefault.get_default_config()) == \ | |
... {"power_func": {"module": "math", "attribute": "pow"}} |
No description provided.