-
Notifications
You must be signed in to change notification settings - Fork 69
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
Make CONTINUATION_INDENT_WIDTH configurable. #78
Comments
What is yapf? |
https://github.com/google/yapf
That is in google's internal Google Python Style guide. Many open source libraries from google such as tensorflow follow this convention, e.g., https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/bayesflow/python/kernel_tests/monte_carlo_test.py Also see, |
So they use 2 spaces instead of 4 for indentation, but then 4 for something else?! / hanging indents?! |
(havent't checked the specific links (the last 2 ones)) |
Ok, feel free to get this integrated somehow here - I am not much interested myself. Maybe it could be defined as something like |
I prefer hard code it to 4, as both pep8 and google prefer this value. |
Then do it.. :) (but be warned that the current test suite is rather ugly) |
Please review #79 |
Current vim will indent as
with
sw=2
. However, I want to have the following indent (google style):In yapf, this is configurable by option
CONTINUATION_INDENT_WIDTH
.The text was updated successfully, but these errors were encountered: