-
Notifications
You must be signed in to change notification settings - Fork 258
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
Lots of new PEP-8 violations #79
Comments
Yeah, I always run the Limiting comments and docstrings to 72 characters is something I always forget about though, and the My vote is to follow the pep8 tool. |
In that case, if @mrocklin is willing, I suggest a separate issue to install pep8 as part of the Travis CI build. Meanwhile I’ll work on the pep8 fixes. On Nov 8, 2013, at 10:09 AM, Erik Welch notifications@github.com wrote:
|
Actually, the latest pep8 tool barfs on quite a bit more:
I don't mind fixing all these, but won't until we have agreement about the overall approach. |
Do you want to require that the pep8 tool passses to pass the travis build test? It would be easy to do. I am supportive of generally following pep8. I would like to see the changes currently required to absolutely follow pep8. Actually, if there are rules we don't like for a file, configuring pep8 is actually really easy and really flexible. An argument for following pep8 is, of course, having code that follows a consistent and already familiar style. This should make it easier for most people to read the code, and for new contributors to know what style to use. Plus, once pep8 is followed, it's easier to continue following it (like 100% coverage). In other words, +1 from me, but lets see the changes before making any "big" decisions. @eigenhombre, if you clean up files, I can't see the work being for naught. |
I also generally support PEP-8. There are rare cases when I don't think it's appropriate. For this reason I'm against rigidly asserting it in travis. I am for asking contributors to follow PEP-8. I'm probably a major offender to the PEP-8 violations. I'll go through sometime this weekend and clean things up. |
If you two feel strongly about this though please go ahead and add pep-8 to the travis script. |
@mrocklin @eriknw what do you think about generally following PEP-8 and rigidly enforcing some agreed-upon subset of the rules? We could add PEP-8 to Travis with any number of exceptions. I think I’m happy w/ any exceptions but strongly feel we should add something automated as a requirement to pass checkin. On Nov 8, 2013, at 12:52 PM, Matthew Rocklin notifications@github.com wrote:
|
+1, although I don't know offhand which warnings and errors we should ignore. A few other packages also use pep8 in this manner, but it doesn't appear to be common. Even though pep8 in total is viewed as a guideline, not a prescription, 90% of it is prescriptive and should be rigidly followed. Be sure to add "--show-source" to the pep8 command to provide the best feedback to the user. |
OK, ticket is #80. On Nov 8, 2013, at 2:26 PM, Erik Welch notifications@github.com wrote:
|
Matt, pls. assign to me if you no longer want this. |
I'm not working on it tonight or early tomorrow but maybe tomorrow night?
|
Fixes #79 -- lots of PEP-8 violations.
Can we have a consensus on whether or not to follow PEP-8? As @mrocklin well knows, my vote is to slavishly follow the dictates of the
pep8
tool, as an aid to consistency and readability (without long discussions about style). @eriknw, do you have an opinion? Anyways, here are some outstanding errors, which I'm happy to fix if we can come to a final decision on this.The text was updated successfully, but these errors were encountered: