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

Replace "option_list" with "parser.add_argument" #40

Merged
merged 2 commits into from
Feb 21, 2019
Merged

Conversation

dongbohu
Copy link
Contributor

This PR addresses issue #39 with the following extra revisions:

  • Coding style cleanup, such as splitting long lines, comments, etc
  • genesets/tests.py: ResourceTestCase class is replaced by ResourceTestCaseMixin, because the former has been deprecated.
  • The management command genesets_update_tip_item_count_all.py is removed because it is not being used anywhere.

Changes have been tested by the relevant unit tests.

print('Geneset ' + str(toks[int(geneset_column)]) + '-' +
str(gs_name) + ' and organism ' + str(org) +
' does not exist in our database'
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String formatting rather than concatenation would improve readability. What is the min python version required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fair to say Python 2.7. These management commands are only used in the tests right now, so I didn't spend too much time improving them.

@dongbohu dongbohu merged commit 5db4d0b into master Feb 21, 2019
@dongbohu dongbohu deleted the rm_option_list branch February 21, 2019 15:33
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.

2 participants