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

Corrected project to conform to PEP8 style. Passed pep8, py27, cover … #15

Closed
wants to merge 2 commits into from

Conversation

gamefiend
Copy link
Contributor

…tests in toxs.

The one thing I have been unsure of is whether we want the coverage html code included in the project or whether that is meant to be local. Other than that, everything is good to go. Will return to finish the argument parser creation code in the next few days.

@gamefiend
Copy link
Contributor Author

so the coverage test failed, but I can confirm that it did pass locally.
screen shot 2016-12-06 at 11 09 05 pm

I am looking at the Travis config right now to see if I can find out what went wrong and get it working.

…right with them in the repo. I suspect that this is the problem with the builds on coverage, which worked before.
@gamefiend
Copy link
Contributor Author

and the cleanup of my cleanup did it! All tests are passing :)


# Licensed under the Apache License, Version 2.0 (the "License");
Copy link
Contributor

Choose a reason for hiding this comment

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

For all files, could you move this licensing statement above the imports? Should be the first thing at the top so you don't have to jump over this to see your imports.


# subcommands used by the program, like 'bdot init'
sub_cmd = [{
Copy link
Contributor

Choose a reason for hiding this comment

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

I consider this format less readable than the previous way you had written this. I know it probably seems overly verbose, but at a glance, I could easily see what was a dict, what was a list, etc. Now, I can't.

return all_subs


if __name__ == "__main__":
Copy link
Contributor

Choose a reason for hiding this comment

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

See https://github.com/commitmas/pybluedot/blob/master/setup.cfg#L24 and study up on the setuptools configuration. In short, none of the Python files we develop will be called directly - that role will be fulfilled by a console script ("binary") generated by setuptools. What you should do is create a "main()" function here so that the current setuptools configuration knows what to grab.

Then, running this is simple:

sudo python setup.py install
bdot patents

function: "sounds"
}
]
cmd_arg = [{
Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, this approach of having args in a list like this may be more trouble than it's worth. Just a gut feeling - you may consider seeing what @jeorryb did here: #13 on args, and try to gel this approach with that one. It's possible do to it, but you would have to use the same options for each arg, which you may not want.

@@ -1,5 +1,17 @@
from pybluedot.tests import base
Copy link
Contributor

Choose a reason for hiding this comment

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

No unit tests for the functions you've created? 😄

@Mierdin
Copy link
Contributor

Mierdin commented Dec 8, 2016

Hey @gamefiend anything I can do to help?

@gamefiend
Copy link
Contributor Author

gamefiend commented Dec 8, 2016 via email

@Mierdin
Copy link
Contributor

Mierdin commented Dec 19, 2016

@gamefiend This is a good PR and I would love to be able to merge it and fix the build! Let me know if you have a chance to address some of my comments, and if there's anything I can do to help.

@gamefiend gamefiend closed this Nov 30, 2023
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