We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, is this supported by yapf configuration if I want to prevent the function parameters from being indented twice in this case:
if func( a, b, ): pass
Output:
Desired output:
I can get the output that I want by changing https://github.com/google/yapf/blob/main/yapf/yapflib/format_decision_state.py#L980 from
return token_indent + style.Get('CONTINUATION_INDENT_WIDTH')
to
return token_indent
But I wonder if this is configurable.
The text was updated successfully, but these errors were encountered:
Looks like I have the opposite issue: #843 ; maybe you find something helpful in this ticket and its links.
Sorry, something went wrong.
It's only when CONTINUATION_INDENT_WIDTH = 4 ): DEDENT_CLOSING_BRACKETS = true solved it in function definition but not in function call
CONTINUATION_INDENT_WIDTH = 4
DEDENT_CLOSING_BRACKETS = true
mark
No branches or pull requests
Hi, is this supported by yapf configuration if I want to prevent the function parameters from being indented twice in this case:
Output:
Desired output:
I can get the output that I want by changing https://github.com/google/yapf/blob/main/yapf/yapflib/format_decision_state.py#L980 from
to
But I wonder if this is configurable.
The text was updated successfully, but these errors were encountered: