-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Document our code_style_guide rules for python #2465
Comments
For starters, I think its obvious to elect PEP-8 as the basic rules. We can tack on more beyond that if we start to care. Probably also worth documenting how to run the |
+1 for PEP-8. |
Would you like me to run |
The Google style guide for Python seems reasonable. As far as I can tell, it is PEP8 plus a few other things. |
Possibly in the future, but for now I'd suggest that someone to test it locally and in integrate into drake-distro first, and then toss it into jenkins. Also there's not that much python code in Drake, so probably not a high priority. |
Sounds reasonable to me. |
FYI: the |
There is also yapf to autoformat Python files in the same spirit as |
Let me try kicking this over to @david-german-tri, since I'm not foresee-ably going to work on it, ever. |
I'm never going to work on this either. Dropping it to the backlog. |
I wonder if @rpoyner-tri would be interested in taking a stab at this, and perhaps relating it to TRI python style? |
Sure. |
We need to document our
code_style_guide.rst
rules for python code. We have C++, Java, and MATLAB rules now, but not python.For the record, in #1741 we choose googlestyle for C++ but didn't appear to discuss other languages. I don't think there's anything else major we've missed, though.
The text was updated successfully, but these errors were encountered: