-
Notifications
You must be signed in to change notification settings - Fork 208
Fix style #97
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
Fix style #97
Conversation
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
==========================================
+ Coverage 37.35% 37.46% +0.11%
==========================================
Files 9 9
Lines 1585 1588 +3
==========================================
+ Hits 592 595 +3
Misses 993 993
Continue to review full report at Codecov.
|
Looks like codecov is upset that there are not many tests covering my changes and is thus giving me the red X. I'll make it my next project to add more tests. I think we should hold off on merging this until test coverage is higher than it is. |
This should be ready to merge if everyone else is happy with it. I am happy to answer any questions to help with reviewing this change. |
Hey @andrewjaykeller , what are your thoughts on this pull request? Love it? Hate it? |
I love the idea, where you able to test it? |
@andrewjaykeller Yep! I actually made this branch before adding all the new testing to the Cyton code, and this new testing confirmed that no functionality is changed by accident, and all of the changes are stylistic. |
Primarily shorter line lengths and convert all print statements to print functions. Also enforce print functions by importing from __future__.
I added some more changes that I originally was saving for another pull request. This includes enforcing print functions (rather than statements) using The pylint score is now up to 6.88/10 on this branch. |
hey @ikmckenz , is this still ready to merge? Thanks! |
Hey @daniellasry , I fixed the merge conflicts and it is ready to merge again. Codecov is upset because the diff coverage is less than the overall coverage. I think this is still okay to merge because:
|
This is a very large pull request, but it doesn't actually change any functionality. It simply brings the style of the code to a semi-uniform and almost-pep8 compliant state.
Before this pull request the code base gets a score of -1.07/10 from pylint, and after we get up to 5.90/10.
The major things changed are white space (only spaces, instead of the potentially dangerous mix of tabs and spaces that was used before), and now there are no semicolons after statements. I don't have hardware to test against (yet) but it would be good to test this before merging to ensure that the functionality that was working is still working, and the functionality that was broken is still broken.