Uh oh!
There was an error while loading. Please reload this page.
bootstrap: Fix all the pep-8 issues reported by flake8 - #43003
Conversation
This commit also adds a few missing docstrings
rust-highfive
commented
Jul 1, 2017
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
zackmdavis
commented
Jul 1, 2017
(not a core reviewer, but commenting anyway because Python!!)
If there were to be unit tests, I'd imagine they should be with standard-libary
Or |
Mark-Simulacrum
commented
Jul 2, 2017
These changes primarily look good to me. I'll r? @alexcrichton for approval though.
I don't know if there's much in bootstrap.py that really could be unit tested -- most of it is setup code interacting with the network or file system in preparation for handing off to rustbuild itself. I'm not opposed to adding tests for the parts we can test, though!
Seems like a good idea, though not familiar with python overly much myself. Feel free to add that here if you'd like! |
alexcrichton
commented
Jul 2, 2017
@bors: r+ We always welcome refactorings of our Python, as you can probably tell we in general aren't the most seasoned Python programmers, so help is always very much appreciated! |
bors
commented
Jul 2, 2017
📌 Commit 44c6781 has been approved by |
bors
commented
Jul 2, 2017
bootstrap: Fix all the pep-8 issues reported by flake8 This commit also adds a few missing docstrings. Today, after reading this [article](https://blog.rust-lang.org/2017/06/27/Increasing-Rusts-Reach.html), I downloaded this project and started building from source. In the meantime, I began to read the `bootstrap.py`, to know more about the building process, and I made a few changes, this is my first contribution to the project, hope you like it. BTW, I have a few doubts about the `bootstrap.py`, any guidance is more than welcome: * Where can I find the unit tests for this script? In case it doesn't exist yet, do you like to include some unit tests with pytest? * Some methods like `fix_executable`, `get_string`, and `exe_suffix` in the `RustBuild` class should be converted to a function because it doesn't use `self` anywhere. What do you think?
bors
commented
Jul 2, 2017
☀️ Test successful - status-appveyor, status-travis |
This commit also adds a few missing docstrings.
Today, after reading this article, I downloaded this project and started building from source. In the meantime, I began to read the
bootstrap.py, to know more about the building process, and I made a few changes, this is my first contribution to the project, hope you like it.BTW, I have a few doubts about the
bootstrap.py, any guidance is more than welcome:fix_executable,get_string, andexe_suffixin theRustBuildclass should be converted to a function because it doesn't useselfanywhere. What do you think?