-
Notifications
You must be signed in to change notification settings - Fork 402
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
Promoted internal _tidy
function to the utils module as dedent
#793
Conversation
Just a drive by - consider adding a test if you still have the behavior of the function cached in brain :) https://docs.bazel.build/versions/main/skylark/testing.html#for-testing-starlark-utilities |
I'll add it to my list 😄 |
I feel like if this is going to be tested then it should go in bazel_skylib seems like functionality that would make folks happy. Or maybe even better, the |
First of all, writing a test is independent from (and maybe a prerequisite for) later points. After we have an implementation that is field tested and of good quality I think folks at https://github.com/bazelbuild/bazel-skylib might accept it. Historically they've been very pedantic and strict about what goes into Skylib and I don't know the exect policy. We should try. If you want to automatically dedent the string in |
The functionality here would be useful elsewhere so I thought it should go in
utils.bzl
and I thought it'd be clearer to borrow the term dedent from python.