-
Notifications
You must be signed in to change notification settings - Fork 441
PEP8 cleanup needed #308
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
Comments
It would be useful to clean these up eventually. I and others have been updating modules to be more PEP8 compliant as we go through and implement improvements. Fine to continue in that fashion or to selectively do PEP8 updates. It would be good to avoid changing a lot of files at the same time, just because it makes it harder to review and comment on things. There was an attempt to do this in PR ##283 but it was a bit too aggressive and ultimately withdrawn. |
One solution to fix this now, and automatically going forward is to leverage an automatic code formatting tool like mongodb's engineering team wrote a series of posts about how they've had a lot of success with automatic code formatting tools. (They're using C++ & Clang-format, but the principles are the same).
I ran This is the commit diff: For an established project it is a big bandaid to pull off at once, but after that if you lean on the tooling then it should be smooth thereafter. |
black is very successful in nonnumeric codea but unfortunately destroys any array alignment or longer function signatures and long string messages. So makes the code unreadable at some point which we also tried a few times on SciPy code. |
Uh oh!
There was an error while loading. Please reload this page.
I noticed a few tab characters in some python script files.
Files with tab characters:
Also, semi-colons are still in use or left-over from Matlab code:
I don't think they affect execution but it's not good practice to have tab characters in python scripts.
The text was updated successfully, but these errors were encountered: