Conversation
This was referenced Aug 24, 2023
Member
Author
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
konstin
reviewed
Aug 24, 2023
Member
konstin
left a comment
There was a problem hiding this comment.
How does this interact with docstring formatting where we have "pad to the next multiple of 8" hardcoded?
Contributor
PR Check ResultsBenchmarkLinuxWindows |
bdd79f3 to
b81f4a7
Compare
Member
Author
Thanks for pointing this out. I changed the docstring padding to use the value from the options. Deviating here isn't an issue because a) people chan change the option b) this is only relevant for not blacked projects (adoption) |
b81f4a7 to
cd66e22
Compare
cd66e22 to
edfeb59
Compare
Member
Author
|
Merging because it is a simple enough change and there's other work that depends on it. |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a new
tab_widthoption that gets passed to the Printer. Thetab_widthoption specifies the visual width of a tab character.Test Plan
I added a new test. The fact that I had to add options not to regress tests that assumed a tab width of 8 proves that it works :)