-
-
Notifications
You must be signed in to change notification settings - Fork 774
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
Should lesson code adhere to PEP8? #159
Comments
+1 to PEP-8 compliance.
|
I'm all for PEP8 compliance (vigilant about it, even!) but I don't think your example follows PEP8. I'm assuming you're thinking about this section. Having no whitespace around |
Looks like I understood PEP8 wrong; sorry about that! My example does not fail the Maybe a compliance check could be automated by extracting all code from the lessons and running that through |
Such a check would be great, and could be incorporated into existing checks. I'm not aware of any tool out there to do this right now; if there were, it'd probably have to be customized anyhow since our code blocks are fenced off with |
Alright, I will take a crack at it when I get a chance. |
This small script may help: Are the python lessons in IPYNB format? |
Top 10 from Chapter 1
Code like
weight_lb = 2.2 * weight_kg
should beweight_lb = 2.2*weight_kg
according to PEP8. Does this matter here?The text was updated successfully, but these errors were encountered: