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
Some whitespace cleanup #85
Conversation
There're two trailing spaces in bipy/core/tests/test_distance (lines 435 and 448) that aren't removed because maybe they're there on purpose.
The whitespace you noted in test_distance.py shouldn't be removed because it's testing that the parser handles lines with leading/trailing whitespace. |
Though I agree it'd be good to get |
This works for vim too:
|
Checking if pep8 had a way to diable whitespace checking in string literals (it doesn't) I found that PEP8 discourages it:
Would you prefer to set |
Sounds good. I like the former (using join)- do you mind taking care of this in this pull request? |
Sure, will do!
|
Thanks! |
Since we're on the discussion of pep8, I've really found Syntastic to be very helpful. It automatically runs |
Planning on using it when I can find some spare time to try it out- looks really useful |
Nice! Just in case there're more emacs users, I use elpy, which among other things includes pyflakes and pep8 for static checking and style issues. It works great :) |
You don't happen to also use tcsh? |
It's a sign!! On Feb 7, 2014, at 9:55 AM, Jai Ram Rideout notifications@github.com wrote:
|
@jrrideout Nope, the one I use is definitely not an "enhanced" anything like tcsh's website says. And that's why I end up doing a lot of terminal work from the IPython console. |
Sorry, I made this PR from my master branch (bad idea), so closing and sending a new one. |
Darn, I thought I'd found @cleme's doppelganger |
One day you'll all leave the Dark side of the Force and join emacs. Actually, now that I run my own lab I should enforce it: you work here, you use emacs and tcsh. Oh wait, people in my lab don't listen to me. |
Specially when people in your lab are rowdy whiskey addicts. On Feb 7, 2014, at 11:27 AM, Jose Carlos Clemente Litran notifications@github.com wrote:
|
Come join us, we don't have cookies but jedis are way cooler :) |
🍺 🍺 🍻 🍺 🍺 Why doesn't github have a whiskey emoji??? |
My editor likes to make lines with trailing whitespace red, so I'd better fix that to keep sane.
By the way, the first and last lines of this range have a trailing space. If we can remove those then
pep8 bipy
passes. Currently we runpep8 --ignore=W
which must have some kind of bug because it raises errors for stuff that isn't an error when not ignoring warnings (!).In emacs this can be automated by adding
(add-hook 'before-save-hook 'delete-trailing-whitespace)
to.emacs
.This shouldn't mess with any of the files being modified/added in the other PRs.