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

Dev/improve configurable documentation #406

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

as6520
Copy link

@as6520 as6520 commented Mar 6, 2020

No description provided.

@as6520 as6520 requested a review from Purg March 6, 2020 21:30
Copy link
Member

@Purg Purg left a 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.

python/smqtk/utils/configuration.py Outdated Show resolved Hide resolved
python/smqtk/utils/configuration.py Outdated Show resolved Hide resolved
python/smqtk/utils/configuration.py Show resolved Hide resolved
@as6520 as6520 requested a review from Purg March 6, 2020 22:50
Copy link
Member

@Purg Purg left a 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.

python/smqtk/utils/configuration.py Outdated Show resolved Hide resolved
Copy link
Member

@Purg Purg left a 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.

Comment on lines +79 to +80
>>> NonCompliantDefault.get_default_config() ==
... {'power_func': {'module': 'math', 'attribute': 'pow'}}
Copy link
Member

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.

Suggested change
>>> NonCompliantDefault.get_default_config() ==
... {'power_func': {'module': 'math', 'attribute': 'pow'}}
>>> NonCompliantDefault.get_default_config() == \
... {'power_func': {'module': 'math', 'attribute': 'pow'}}

Comment on lines +82 to +83
>>> json.dumps(NonCompliantDefault.get_default_config()) ==
... {"power_func": {"module": "math", "attribute": "pow"}}
Copy link
Member

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.

Suggested change
>>> json.dumps(NonCompliantDefault.get_default_config()) ==
... {"power_func": {"module": "math", "attribute": "pow"}}
>>> json.dumps(NonCompliantDefault.get_default_config()) == \
... {"power_func": {"module": "math", "attribute": "pow"}}

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.

None yet

2 participants